Unverified Breakpoints with "Python" or "Integrated Teminal/Console"
See original GitHub issueFrom @mike-pt on March 5, 2017 16:2
Environment data
VS Code version: 1.10.1 Python Extension version: 0.5.9 Python Version: 2.7 OS and version: Windows 10
Actual behavior
Trying to set break points on inner modules set then as Unverified Breakpoint
and debugger skips those, setting than on the program
file seems to work.
Expected behavior
It should be possible to create breakpoints anywhere in the code, even if its not the “program” file
Not sure if its related to my custom launch config, but I’m simply specifying args and the program to run
My launch.json (if dealing with debugger issues):
{
"name": "runTest.py Integrated Terminal/Console",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"pythonPath": "${config:python.pythonPath}",
"program": "${workspaceRoot}/runTest.py",
"args" :[
"-l", "cpms",
"-a", "true",
"-t", "pms",
"--run-type", "stagger",
"--stagger-time", "10",
"--se", "addLibraries",
"-e", "stage"
],
"cwd": null,
"console": "integratedTerminal",
"env": null,
"envFile": "${workspaceRoot}/.env",
"debugOptions": [
"WaitOnAbnormalExit",
"WaitOnNormalExit"
]
},
The same thing happens if I use args/program in a similar way on “python” (without Terminal/Console).
Keeping program as “${file}” also ends in the same behavior.
Copied from original issue: DonJayamanne/pythonVSCode#791
Issue Analytics
- State:
- Created 6 years ago
- Comments:13
Top GitHub Comments
Able to replicate when debugging Python unit tests. Solution is for debugger to raise the
Breakpoint
event with the reason ofchanged
.I simply copy pasted the code from the link above, to
testdir/test.py
andtestdir\moduletest.py
Do you need me to upload that go gist? or something?
I’m using “cmd + shift+ D” on the mac with the test.py file opened while doing this I select
Python: Terminal (integrated)
As for the launch.json here it goes: https://gist.github.com/mike-pt/ddd49ea9cb846d02649c8575cd203f21
And settings.json https://gist.github.com/mike-pt/a7fdd3b0a170a219e3e5b8bd6084c03f