user5067291
user5067291

Reputation: 449

Breakpoints not being hit - VSCode

I am very new to using VSCode, I am just trying to determine why my breakpoints are not being hit. I might be misunderstanding some basic concepts, so please bear with me.

I have a python file which is called by another python file.

In the python file that I want to debug, if I set a breakpoint at a top level indentation function it breaks, however, if I put a breakpoint in anything other than that the debugger skips over it.

Doesnt Break

Does Break

Upvotes: 0

Views: 1278

Answers (1)

tinutmap
tinutmap

Reputation: 1

One way to troubleshoot is going to Debug Console in Vscode. It may give you a hint of why Debug and Break point did not hit.

In my case when debugging Django code calling other libraries, the break did not hit. Thanks to the suggestion in Debug Console, I changed "justMyCode": false to make it work.

screenshot

Upvotes: 0

Related Questions