question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unverified Breakpoints with "Python" or "Integrated Teminal/Console"

See original GitHub issue

From @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:closed
  • Created 6 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
DonJayamannecommented, Mar 8, 2018

Able to replicate when debugging Python unit tests. Solution is for debugger to raise the Breakpoint event with the reason of changed.

0reactions
mike-ptcommented, Mar 5, 2018

I simply copy pasted the code from the link above, to testdir/test.py and testdir\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

Read more comments on GitHub >

github_iconTop Results From Across the Web

VSCode python 'Unverified breakpoint' during debugging?
I have a main python file from where I start the debugger. I'm able to put breakpoints in this file, but if I...
Read more >
What's up with all the unverified breakpoints? : r/vscode - Reddit
I have never debugged PHP in VS Code, but I know that was an issue for debugging "vendor" code in Python.
Read more >
About Verified and Unverified Breakpoints - Oracle
Breakpoints set on comment lines, blank lines, declarations, and other non-executable lines of code are invalid and will not be verified by the...
Read more >
Unverified Breakpoint: Apex Replay debugger not stopping at ...
When I am trying to replay a log file in Apex Replay Debugger in VSCode, the debugger never stops at the specified break...
Read more >
VSCode python 'Unverified breakpoint' during de...anycodings
VSCode python 'Unverified breakpoint' during debugging? I'm debugging my python application using anycodings_visual-s ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found