Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable "just my code" setting in VSCode debugger?

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?

like image 965
Revolt64 Avatar asked Oct 25 '18 02:10

Revolt64


People also ask

How do I disable Debug console in Vscode?

VS Code maintains a debug session while the program is running, and pressing the Stop button terminates the program.

What is just my code in Visual Studio?

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.

How do I disable debugging in Visual Studio?

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.

How do you break in VS code?

For Windows, Pressing Alt+Z will break the line.


2 Answers

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.)

like image 113
Geshode Avatar answered Sep 23 '22 12:09

Geshode


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

like image 21
Tenzin - Avatar answered Sep 23 '22 12:09

Tenzin -