如何在启动中启用GDB的自定义Python脚本。
众所周知,GDB对于调试CPP很有用,我们可以通过configure laight.json在VSCODE中使用GDB。当您想为GDB运行Python脚本时,可以在控制台中启动GDB并键入“ source xx.py”。但是,在VSCODE中,您只能在启动过程中配置GDB。在目标程序启动之前。因此,我想知道如何配置启动。JSON文件以配置要配置的GDB的自定义Python。
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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
注意和修改:
Note and modify: