-
Notifications
You must be signed in to change notification settings - Fork 67
python without debugging won't start if there is a breakpoint #1408
Comments
@tmdag @jxramos Can you share logs, for the debugger? you can get logs by setting {
"name": "Terminal",
"type": "python",
"request": "launch",
"pythonPath": "${config:python.pythonPath}",
"program": "${file}",
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"env": {
"PTVSD_LOG_DIR": "<path to directory>"
}
}, |
@karthiknadig This is what got rendered....
|
The path being passed in the unescaped version: escaped version: |
That’s very likely a side effect of my manual redaction. |
Sorry, misunderstood the meaning of The real problem here looks like all the |
I manipulated various aspects of the path and script names, substituting my actual user name to $USER was part of my find and replace operation. Here's a more careful redaction of that git line...
|
and this is my output
|
I'll take a look at this. |
I'm able to reproduce this (on Linux) with the code below (it seems it can be any script that does not end too fast):
I've instrumented The difference is that afterwards, Enabling To me it doesn't seem like the issue lies on @karthiknadig should this be passed to someone in the VSCode client side? |
I suspect the reason why it terminates is because the |
@int19h you're right, it seems that the problem is that the response was not a valid breakpoints response. I'll provide a pull request shortly. |
@tmdag commented on Thu May 02 2019
Environment data
Steps to reproduce:
Open Python code
create a breakpoint
run python without debugging (ctrl+F5)
Terminal output:
cd /home/user/dev/Pytool ; env PYTHONIOENCODING=UTF-8 PYTHONUNBUFFERED=1 /usr/bin/python3 /home/user/.vscode/extensions/ms-python.python-2019.4.11987/pythonFiles/ptvsd_launcher.py --default --nodebug --client --host localhost --port 36019 /home/user/dev/Pytool/mypytool.py
Terminated
Does this issue occur when all extensions are disabled?: Yes/No
Not sure - Python extension is required
Enabled Extensions:
Bookmarks 10.4.3
C/C++ 0.221
Gist 3.0.3
Git History 0.4.6
GitLens - 9.6.3
markdownlint 0.26.0
Syncing 2.1.6
OpenCL 0.5.2
VEX 0.4.0
TAML 0.4.0
@jxramos commented on Thu May 02 2019
I'm seeing this too on a MacOS, it immediately exits with
Terminated: 15
. This behavior persists even if the breakpoint is disabled/unchecked.The text was updated successfully, but these errors were encountered: