When starting my project in the debugger (C# .NET Core), it states it's debugging "just my code".
I want to also debug the libraries, and can't see a setting to disable this anywhere in VSCode.
Is it possible to disable?
VS Code maintains a debug session while the program is running, and pressing the Stop button terminates the program.
From Visual Studio Docs: Enable Just My Code: The debugger displays and steps into user code ("My Code") only, ignoring system code and other code that is optimized or that does not have debugging symbols.
Enable or disable Just-In-Time debugging in Visual Studio You can configure Just-In-Time debugging from the Visual Studio Tools > Options (or Debug > Options) dialog box. To enable or disable Just-In-Time debugging: On the Tools or Debug menu, select Options > Debugging > Just-In-Time.
For Windows, Pressing Alt+Z will break the line.
For this you need to change the launch.json
file. Inside the launch.json
file you have to set "justMyCode"
to false
.
As described here. (I was pointed to that link through this post on the Visual Studio Code site.)
Just adding "justMyCode": false
to launch.json
doesn't work. You need to add a separate config in launch.json
like below. FYI each {}
represents a config.
"configurations": [ { .... # existing config }, { "name": "Debug Unit Test", "type": "python", "request": "test", "justMyCode": false, } ]
As pointed out in here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With