Skip to content

Running debugpy with embedded interpreter on Windows #1827

Closed Answered by rchiodo
maxbachmann asked this question in Q&A
Discussion options

You must be logged in to vote

Are you saying breakpoints work in Visual Studio (mixed mode), but they don't in VS Code for the same app? I mean it makes sense, it's two different debuggers. But theoretically they should be searching for breakpoints the same way.

But in debugpy if the breakpoints aren't being hit, that generally means debugpy doesn't think that code is running (or it already ran). The tracing of frame output makes it look like that code isn't running.

If you're running a C++ app and it runs a script, you have to pause the script in order to attach debugpy. That might be what you're hitting. Whereas in Visual Studio with mixed mode, you actually attach a C++ debugger and it just translates python stack …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@maxbachmann
Comment options

@rchiodo
Comment options

Answer selected by maxbachmann
@maxbachmann
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants