How to configure Visual Studio Code debugger?

Nacho .I 20 Reputation points
2023-07-17T23:48:21.5+00:00

It turns out that I am programming in Java, from Visual Studio Code, my problem is that when debugging my project, the internal classes of the Java JDK are also debugged, it is very slow to debug a project like this, since what I want, evidently, is to see the operation of the classes of my project, in order to find possible errors, not to see the operation of the JDK classes, of which nothing I can edit. From the settings.json of Vs Studio Code, I saw a function that just allows you to skip those classes when debugging, but even putting it still does not work, then in the launch.json of the project there are also similar functions, but returned, when tested, absolutely nothing happened.

This is the function I found that can be used in the settings.json:

"java.debug.settings.stepping.skipClasses": [      
   "java.awt.*",       
  "$JDK",       
  "javax.swing.*"    
 ]

and this is launch.json:

   "stepFilters": {              
  	"skipClasses": [                
    		"$JDK",    
   			"junit.*"                
	], 
	"skipSynthetics": false,               
	"skipStaticInitializers": false,                
	"skipConstructors": false
}

These are the kind of classes that this show me, that don't interest me:

Loom _ Free Screen  Video Recording Software _ Loom - 17 July 2023

I will be attentive to your answers, thanks and greetings.

Developer technologies Visual Studio Debugging
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2023-07-18T03:21:07.57+00:00

    Hi @Nacho, 

    Welcome to Microsoft Q&A! 

    You are using Visual Studio Code, which is different from Visual Studio. The tag “Visual Studio Debugging” is related to Visual Studio product, for more questions about Visual Studio Code, please post it to the Stack Overview tagged visual-studio-code forum or GitHub repository where you would get professional support for this product.

    Thanks for your understanding! 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.