Py学习  »  Python

在Linux上调试VisualStudio代码的Python C++扩展

Mike • 5 年前 • 1647 次点击  

我已经为attach设置了launch.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
            }
        ]
    },

不幸的是,什么都没发生。我对Visual Studio代码的调试还很陌生,所以可能遗漏了一些琐碎的东西。

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/56690
 
1647 次点击  
文章 [ 1 ]  |  最新文章 5 年前