且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Visual Studio Code中调试外部库代码?

更新时间:2021-12-07 08:31:39

Debug =>添加配置...

Debug => Add Configurations...

这将打开launch.json文件.它应该看起来像这样:

This will open a launch.json file. It should look like this:

"version": ...,
"configurations": [
    {

    ... bunch of stuff here

    "justMyCode":false          <==== add this line then save
    }
]

现在,您应该可以对外部文件使用断点了.

Now you should be able to use breakpoints with external files.