问题
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