'how to enable self-defined python script for gdb in launch.json of vscode?
As we all know, gdb is useful for debugging cpp, we can use gdb in vscode by configure launch.json. When you want to run python script for gdb, you can start the gdb in console and type "source xx.py". However, in vscode, you can only configure the gdb in launch.json before the target program start. So I want know how to configure the launch.json file to configure the self-defined python for gdb to be configured.(Because my project is cmake project, so i want to debug it through launch.json)
Solution 1:[1]
- program: program name to debug (including path, preferably absolute path)
- miDebuggerServerAddress: address and port of the server
- cwd: path to debugger
- miDebuggerPath: path to GDB
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | MingJie-MSFT |

