Ptvsd с кодом Visual Studio «Отладчик pydev: предупреждение: попытка добавить точку останова в файл, который не существу ⇐ Python

Программы на Python
Anonymous
Ptvsd с кодом Visual Studio «Отладчик pydev: предупреждение: попытка добавить точку останова в файл, который не существу

Сообщение Anonymous »

Когда я запускаю следующую отладку из кода Visual Studio (компьютер Windows) на Raspberry PI. Я дважды получаю следующую ошибку:

Код: Выделить всё

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)
Это настройка в файле launch.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.
}
Есть идеи, почему мне удалось заставить это работать?

Подробнее здесь: https://stackoverflow.com/questions/527 ... breakpoint

Вернуться в «Python»