From the course: Java: IDE Overview
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Debugging Java code in Visual Studio Code - Java Tutorial
From the course: Java: IDE Overview
Debugging Java code in Visual Studio Code
- Having an easy debugging experience is essential to understand how the code behaves, and where it fails, so you can troubleshoot it quickly. Even though VS Code is not a Java specific editor, you would be surprised by the debugging features it comes with. We already saw how to run an app. Just simply click on the run icon in the top right corner. By default, the debugger will run out of the box by automatically finding the main class, and generating a default launch configuration and memory, to launch your application. But if you have multiple main methods, or different arguments, this is where we first need to configure the launch configuration. VS Code will do this for you automatically. Just click create launch.json file link in the run and debug view. You can also run and debug your code by clicking here, in the run and debug view. Or through CodeLens, which adds two links above the main method. This is our…
Contents
-
-
-
-
-
-
(Locked)
Download and install Visual Studio Code3m 43s
-
(Locked)
Create your first application in Visual Studio Code3m 30s
-
(Locked)
Navigating and searching project files throughout Visual Studio Code6m 33s
-
(Locked)
Debugging Java code in Visual Studio Code6m 33s
-
(Locked)
Code efficiently by using shortcuts and code completions6m 17s
-
(Locked)
-