Closed blackchoey closed 4 years ago
That's pretty strange... the debugger should only print this if os.path.exists(file) == False
... Can you check there if os.path.exists
with that file really does return False
?
Also, can you provide the pydevd
logs you have when running it? To obtain those, please add the following environment variables to the launch:
PYDEVD_DEBUG=True
PYDEVD_DEBUG_FILE=/path/to/log/pydevd.log
Ensure that /path/to/log
directory exists before running (and remove any personal information from the log files).
Unable to reproduce or investigate the issue further without logs. Please re-open if you're still seeing it with the most recent version of the debugger.
Environment data
"python.jediEnabled"
set to; more info microsoft/vscode-python#3977): JediExpected behaviour
No warning should exist in VS Code debug console when debug
Actual behaviour
Warning
pydev debugger: warning: trying to add breakpoint to file that does not exist: xxx
is outputted to VS Code debug console. But the breakpoint can be hit.Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
Python Module
when selecting module template. Leave default values for all other fields.modules/SampleModule/main.py
deployment.debug.template.json
, chooseBuild and Run IoT Edge solution in simulator
. A docker container will start to execute the python code.Debug
in VS Code activity bar, choose configurationSampleModule Remote Debug (Python)
and start debugLogs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Nothing surprise in the logs.
Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging
)No logs from Console