需求

想再pytorch源码里打断点调试,而断点无法跑进三方库
参考网上删除*.egg文件不起作用

实现

添加对应launch.json并设置"justMyCode": false即可生效

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Current File",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "justMyCode": false,
            "args": ["-d","dataset/interm_data","-o","run/vectornet/","-a","-b","128","-c","-cd","0","--lr","0.001","-luf","10","-ldr","0.1"]
        }
    ]
}

相关文章:

  • 2021-11-02
  • 2021-05-22
  • 2022-01-15
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
  • 2021-05-27
猜你喜欢
  • 2021-12-15
  • 2022-01-22
  • 2021-08-31
  • 2021-10-14
  • 2021-12-12
  • 2021-04-17
  • 2021-09-30
相关资源
相似解决方案