我编写了一些Python C++扩展,我想在使用Python(交互地)使用Linux上的VisualStudio代码的同时调试它。你知道吗
我已经准备好了启动.json附件如下。基本上它是使用我的python解释器作为程序
{
"name": "(gdb) Attach",
"type": "cppdbg",
"request": "attach",
"program": "/home/mike/.pyenv/versions/anaconda3/bin/python",
"processId": "${command:pickProcess}",
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
不幸的是,什么也没发生。我对visualstudio的调试代码还很陌生,所以我可能遗漏了一些琐碎的东西。你知道吗
这的确是微不足道的。只要附上正确的流程。把答案放在这里,因为在网上找到答案并不容易。你知道吗
相关问题 更多 >
编程相关推荐