You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extension version: 2020.8.105045
VS Code version: Code 1.48.2 (a0479759d6e9ea56afa657e454193f72aef85bd0, 2020-08-25T10:56:10.074Z)
OS version: Linux x64 3.10.0-1127.13.1.el7.x86_64
System Info
Item
Value
CPUs
Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz (4 x 2399)
Sorry, missed the questions. I am able to pause it but only before my local code is run. Here's a screenshot of the call stack pane, which I don't think is unusual but not really sure what to look for.
I also figured out it does have something to do with this specific project, on another project I am able to hit by breakpoints. I am using the red circle breakpoints, I am unaware of how to use the built-in breakpoint function
EDIT: I have now updated my email settings on this account so I will be notified to an email account I will check.
{"name": "Python: Test","type": "python","request": "test","console": "integratedTerminal","envFile": "${workspaceFolder}/.env","justMyCode": false,"stopOnEntry": false,"env": {"DEBUG": "true","CF_DIET": "dev"},"logToFile": true// <--- this will enable logging.}
You should be able to find logs in the extension folder: ~/.vscode/extensions/ms-python.python*. You should find files named debugpy-.log and pydevd.log. there will be multiple. Share them all.
Looks like it does not get to the breakpoint at all. Seems like you hit this error, before it gets to the breakpoint.
AttributeError: <module 'lodges.jobs.task_classes.orchestration' from '/home/bsolt/repos/loadable-orchestration/lodges/jobs/task_classes/orchestration.py'> does not have the attribute 'get_job_by_id'
You might have to use the Raised exception to catch these at the moment. uncaught is not enough because pytest catches all exceptions (so we can identify the above exception as uncaught).
Note: The debugger has a feature that detects these scenarios (user uncaught), but we have not enabled that yet.
Oh that does make sense... Well I'm glad that the "User Uncaught" feature would have alleviated my pain. The issue can probably be closed but I'll leave that up to you.
Karthik Nadig (@karthiknadig), can you take a look at another instance for me? I'm pretty sure this instance is a bug, because the execution fails a few lines into the test and I have put debug lines on each line of the test I am running, which seem to be ignored. Specifically, the line which pytest is highlighting here is test_flight_rule_check.py:22, which the execution should have been stopped on. The new log files are attached. Should I maybe open a new issue for this?
Braden Solt (@bSolt), I'm not exactly sure what's the issue... if you still can reproduce it, can you create a new issue providing some sample code to reproduce as well as the related logs?
Activity
int19h commentedon Aug 28, 2020
Does it break if you use Pause on the debugger toolbar, or the built-in
breakpoint()function?If so, is there anything unusual about the filenames that you see in the editor tabs and in the Call Stack pane when it breaks?
bSolt commentedon Sep 11, 2020
Sorry, missed the questions. I am able to pause it but only before my local code is run. Here's a screenshot of the call stack pane, which I don't think is unusual but not really sure what to look for.
I also figured out it does have something to do with this specific project, on another project I am able to hit by breakpoints. I am using the red circle breakpoints, I am unaware of how to use the built-in
breakpointfunctionEDIT: I have now updated my email settings on this account so I will be notified to an email account I will check.
karthiknadig commentedon Sep 11, 2020
Braden Solt (@bSolt) Here is an example of calling
breakpoint()function:This assumes you are using Python 3.7 or greater.
For older versions of python, you can do this, and it is compatible with all versions of python (including 3.7 or greater).
Note: you don;t have to install debugpy if you are running locally (on the same machine as the python-extension).
bSolt commentedon Sep 11, 2020
Thanks for the quick tutorial, that's very straightforward. Running this particular project on 3.6.3 so I added
But it doesn't stop either. How else can I help diagnose this?
karthiknadig commentedon Sep 11, 2020
I see. Try this:
You should be able to find logs in the extension folder:
~/.vscode/extensions/ms-python.python*. You should find files named debugpy-.log and pydevd.log. there will be multiple. Share them all.karthiknadig commentedon Sep 11, 2020
Also, Share the list of extensions installed. Just do
lsin the~/.vscode/extensionsfolder.bSolt commentedon Sep 11, 2020
List of extensions:
And here are the log files when I tried to run a single unit test with the breakpoint on (test_orchestration.py:48 is where I'm expecting it to stop):
debugger.vscode_1e8eec5f-be62-4ccb-aa5e-0a008e75cd2e.log
debugpy.adapter-10606.log
debugpy.launcher-10669.log
debugpy.pydevd.10675.log
debugpy.server-10675.log
EDIT: not sure why python extension shows up twice, but the log files came from the greater versioned one
karthiknadig commentedon Sep 11, 2020
Looks like it does not get to the breakpoint at all. Seems like you hit this error, before it gets to the breakpoint.
You might have to use the

Raisedexception to catch these at the moment.uncaughtis not enough becausepytestcatches all exceptions (so we can identify the above exception as uncaught).Note: The debugger has a feature that detects these scenarios (user uncaught), but we have not enabled that yet.
bSolt commentedon Sep 11, 2020
Oh that does make sense... Well I'm glad that the "User Uncaught" feature would have alleviated my pain. The issue can probably be closed but I'll leave that up to you.
karthiknadig commentedon Sep 11, 2020
Closing this against user-unhandled, since this is closely related:
#275
#364
bSolt commentedon Sep 14, 2020
Karthik Nadig (@karthiknadig), can you take a look at another instance for me? I'm pretty sure this instance is a bug, because the execution fails a few lines into the test and I have put debug lines on each line of the test I am running, which seem to be ignored. Specifically, the line which pytest is highlighting here is test_flight_rule_check.py:22, which the execution should have been stopped on. The new log files are attached. Should I maybe open a new issue for this?
debugpy.pydevd.7820.log
debugpy.server-7820.log
debugger.vscode_fd38b750-9887-4eb7-b2ab-30c875f8d888.log
debugpy.adapter-7804.log
debugpy.launcher-7814.log
bSolt commentedon Sep 14, 2020
In this case it seems like I am not about to pause using the toolbar.
bSolt commentedon Sep 14, 2020
Oh interesting, but when I try to use the inline breakpoint (
debugpy.breakpoint()) it is able to pause execution!bSolt commentedon Sep 14, 2020
Another note: once the inline breakpoint is caught, then you can continue as usual to hit subsequent breakpoints invoked via the UI without issue.
karthiknadig commentedon Sep 14, 2020
/cc Fabio Zadrozny (@fabioz)
fabioz commentedon Oct 9, 2020
Braden Solt (@bSolt), I'm not exactly sure what's the issue... if you still can reproduce it, can you create a new issue providing some sample code to reproduce as well as the related logs?
aminechm commentedon Jun 7, 2025
what worked for me was clearing all
.pycand__pycache__recursively using : https://gist.github.com/hbsdev/a17deea814bc10197285in both my local workspace and equivalent Docker container