ptvsd with visual studio code “pydev debugger: warning: trying to add breakpoint to file that does not exist”

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-05 05:27:10

问题


When I run the following debug from a Visual studio code (Windows computer) to a Raspberry PI. I get the following error twice :

pydev debugger: warning: trying to add breakpoint to file that does not exist: /home/pi/testdebug/C:/IOT/Github/RaspberryPi/test_remote_debug/test_remote_debug.py (will have no effect)

pydev debugger: warning: trying to add breakpoint to file that does not exist: /home/pi/testdebug/C:/IOT/Github/RaspberryPi/ReadPressure/Testing_bar_broke_notification.py (will have no effect)

This is the setting in the lauch.json :

{
    "name": "Python Attach (Remote Debug blah blah )",
    "type": "python",
    "request": "attach",
    "pathMappings": [
        {
            "localRoot": "${workspaceFolder}",  // You may also manually specify the directory containing your source code.
            "remoteRoot": "/home/pi/testdebug/" // Linux example; adjust as necessary for your OS and situation.
        }
    ],
    "port": 3000,                   // Set to the remote port.
    "host": "192.34.98.197"               // Set to your remote host's public IP address.
}

Any ideas why im getting to get this to work ?

来源:https://stackoverflow.com/questions/52760636/ptvsd-with-visual-studio-code-pydev-debugger-warning-trying-to-add-breakpoint

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!