
Master Java debugging with Visual Studio Code by exploring basic and advanced debugging features, breakpoints, variable inspection, and flow control, plus containerized workflows including Spring Boot, Docker, Kubernetes, and GKE.
Adjust playback speed to 1.5x or 2x and set video quality to at least 720p based on your internet speed, and rate thoughtfully by using ask me later.
Download and install JDK from Oracle for Windows, set JAVA_HOME to the installation path, append bin to PATH, and verify the installation by running java -version.
Install and configure Java and VS Code for Java, install the Java extension pack, create a Java project, and run a Hello World program in VS Code.
Import a Maven Java project into VS Code by installing the Java extension and Maven, opening the project folder, and using Maven to clean install and run a sample.
Learn Java debugging with VS Code by placing breakpoints, running in debug mode, and exploring the run view, variables, inline values, and essential debugger controls.
Master debugging in VS Code for Java by learning to control program flow with step over, step into, and step out, using breakpoints and the debug mode.
Learn how to inspect variables in VS Code during Java debugging, using local variables, inline views, watch expressions, and the debug console to evaluate i, j, lists, and maps.
Learn to alter variable values during debugging in VS Code, including primitives and collections, via set value, inline edits, or the debug console to modify the first list item.
Learn to debug Java streams and lambda operations in VS Code by setting breakpoints, stepping through map and filter, and inspecting results from a sample program.
Use step filters in Java debugging to skip JDK and library classes in VS Code, configured via launch.json or settings.json to focus debugging on your own code.
Use conditional breakpoints in Java debugging with VS Code to pause program flow when a condition is met, inspect list items in a for loop, and diagnose type mismatches.
Learn to use exception breakpoints in VS Code for Java debugging, handle uncaught and caught exceptions, and customize settings.json to skip JDK library classes for clearer pause points.
Learn how logpoints differ from breakpoints in Java debugging with VS Code, enabling state inspection via log messages without modifying source code or pausing execution.
Learn how data breakpoints in VS Code trigger when a field like age is read or modified during debugging, and how they differ from line breakpoints.
Use run to cursor to move execution to a chosen line during java debugging in vscode. Inspect that line without adding a breakpoint, treating the segment as an invisible breakpoint.
Learn to run and debug JUnit test cases in VS Code with a Maven project, using Test Explorer and run icons, debug at package, class, or method levels with breakpoints.
Learn to debug a Spring Boot application locally and remotely using VS Code, Maven builds, and the Spring Boot extension pack, including breakpoints and remote attach on port 8001.
Learn how hot code replacement in the VS Code debugger transmits Java class changes to a running JVM during a debugging session, enabling on-the-fly updates without restarting the server.
Learn to run and debug a Spring Boot multi-module Maven project from VS Code. Set up the parent and child modules, build with Maven, and use breakpoints across modules.
Run and debug a Java web app in Tomcat using VS Code. Configure Tomcat, install the community server connectors extension, deploy a Maven WAR, and set breakpoints for debugging.
Learn to debug a Java web app in Jetty using VS Code with the Community Server Connector extension, including deploying a Spring Boot WAR via Maven and setting breakpoints.
Learn to debug a spring boot application inside docker using a dockerfile and vscode, including building with maven, configuring port 5005, and attaching a remote debugger.
Debug a Spring Boot application in Docker using Docker Compose with VS Code, set breakpoints, and inspect requests on ports 8080 and 5005 for live Java debugging.
Install Docker Desktop on Windows 10, enabling WSL2, installing the Linux kernel and Ubuntu, and launching Docker Desktop.
Enable Kubernetes in Docker Desktop and start a local Kubernetes cluster. Use kubectl to check the context and confirm a single-node cluster provided by Docker Desktop.
Learn to debug Java applications in a local Kubernetes cluster using VS Code and the Google cloud code extension, with Skaffold and Kubernetes manifests.
Learn how to create a small GKE cluster in Google Cloud, enable the Kubernetes Engine API, select a standard cluster, and configure cluster basics with node pools.
Install Google's cloud code extension in VS Code and open its UI. View local Kubernetes clusters and Google Cloud sections like Cloud Run, Cloud API, and Secret Manager.
Debug Java applications in a remote GKE cluster using VS Code and the Cloud Code extension, with Skaffold and Maven builds, then access via the load balancer and set breakpoints.
Debug a Java app inside a Docker container using the VS Code remote development extension pack, opening the project in a dev container and hitting breakpoints.
verify requirements and know the input and expected output. read error messages, navigate to the exact line, perform root cause analysis, and consider conditional or exception breakpoints before testing fixes.
Debug a java vscode exercise that buys candies at $0.10 from a $1 budget and shows zero candies and money left as -0, then fixes the logic.
Debug the while loop by incrementing the candy price by 0.10, correctly decrementing the total budget, and incrementing the count, yielding ten candies and zero money left.
Generate a random number within a given range and verify its primality with a check prime method, then diagnose and fix a division by zero error in the main method.
Debug a Java prime-checking solution in VS Code, fix the random number range and start from two, and use exception breakpoints to detect division by zero and identify primes.
Explore calculating quadratic roots in java with a print roots method, computing the determinant, and deriving root1 and root2, then investigate why a second call yields not a number.
Debug java quadratic roots in VS Code by computing the determinant and guarding against negative values with an if block, printing that roots are not calculated when determinant is negative.
Explore smart numbers defined by an odd number of factors and debug the is_smart_number function to print Yes or No for each input, with examples 1271, 69, 113, and 169.
Identify smart numbers by odd factors using square root logic. Debug the Java program in VS Code with breakpoints and fix the root check condition.
Learn to debug a Java xor problem in VS Code by implementing the xor of two binary strings and validating against sample inputs like 10101 and 00101.
Debug a xor string solution in java using VS Code, tracing character-by-character comparisons to build output by appending 1s or 0s based on equality of characters.
Students explore a Java recursion for the fibonacci sequence, see how passing nine triggers an endless loop and exception, and learn to debug the code to produce output.
Debug a Java fibonacci method in VS Code, trace the base cases and recursive calls, fix the faulty condition to or, and verify outputs 34, 5, and 13.
Debug a bubble sort program in Java with VS Code to diagnose why the sorted array isn't printed after sorting, possibly due to an infinite loop or logic error.
Debug the bubble sort solution in VS Code, identify an infinite loop caused by the inner loop boundary, and implement the fix to produce a sorted array.
This lecture demonstrates debugging Java string operations in VS Code, focusing on count occurrences method and a reverse string method, and addresses an array index out of bounds error.
Learn to debug Java string utilities in VS Code by fixing count of occurrence and reverse string methods, addressing array index out of bounds errors and indexing starting from zero.
Debug a Java program in VS Code to fix a diagonal printing issue, understand the intended diagonal output, and apply the logic fix for the correct pattern.
debug and fix a java pyramid printing program in VS Code by correcting loop bounds, reversing the iteration, and aligning spaces and stars to render the right-diagonal structure.
Debug a java program in vscode that counts lucky dates by concatenating day, month, year and testing divisibility by 4 or 7 between two dates.
debug a java program in VS Code that counts prime dates between dates, where dates divisible by four or seven are lucky; fix leap year logic and month increments.
Learn how to debug a Java program in VS Code to produce a correct lower triangular matrix by zeroing only the elements above the diagonal in a two dimensional array.
Learn how to transform any 2D matrix into a lower triangular form by zeroing elements above the diagonal, with corrected inner-loop boundaries and debugging steps to prevent index errors.
Convert an array of distinct integers into a zigzag sequence by permuting elements, with the first k increasing and the last k decreasing, using a Java sample and debugging.
Learn to transform an array into a zigzag sequence by sorting, then arranging around the middle value with increasing first and decreasing last elements, while debugging in VS Code.
Debug a Java dice game in VS Code, identify root causes of incorrect round numbers and input validation, and implement fixes to produce the correct outputs.
Learn to debug a Java dice game in VS Code. Fix count and round logic by summing dice values and validating user input.
Disclaimer: This course requires you to download Docker Desktop from its official website. If you are a Udemy Business user, please check with your employer before downloading software.
VS Code (Visual Studio Code) is quickly becoming of the most popular IDEs used for Java programming.
This course is an entirely hands-on and an example-based comprehensive course, which would guide you to learn and master the essentials of Java Debugging using the popular VS Code (Visual Studio Code) Editor
Powerful Debugging Skill at Your Fingertips
Debugging Java applications can be a frustrating and time-consuming process, but it doesn't have to be. With this comprehensive course on Java debugging with Visual Studio Code (VS Code), you'll learn the tips, tricks, and best practices that experts use to quickly identify and solve bugs in their code.
By the end of this course, you'll have a deep understanding of Java debugging with Visual Studio Code, and be able to confidently troubleshoot and fix bugs in your own Java applications. Whether you're a beginner or an experienced developer, this course will provide you with the skills and knowledge you need to take your debugging skills to the next level.
Content and Overview
The entire course is broken down into the following categories:
Basic Debugging Features
Advanced Debugging Features
Simple Debugging Problem Scenarios and Hands-on Solutions
Advanced Debugging Problem Scenarios and Hands-on Solutions
The Basic Debugging Features covered:
How to place breakpoints and run a program in debug mode
How to control the program flow during Java Debugging
Expression evaluation and Inspecting Variables
Edit variable values without changing code
Debugging Lambda and Stream based operations
Use of Step Filters in Java Debugging
Using Conditional Breakpoint
Using Exception Breakpoint
Breakpoint - Logpoints
Breakpoint - Data breakpoint
Run to Cursor
Debugging JUnit Test Cases
Local and Remote Debugging of Spring Boot Project
Hot Code Replace (HCR) during Debugging
Debugging Multi Module Spring Boot Maven Based Project
The Advanced Debugging Features covered:
Run and Debug Java Web Application in Tomcat using VS Code
Debug Spring Boot application in Docker using Dockerfile
Debug Spring Boot application in Docker using Docker Compose
Docker Installation in Windows 10
Run and Debug Java Web Application in Tomcat using VS Code
Run and Debug Java Web Application in Jetty Server using VS Code
Install Local Kubernetes Cluster with Docker Desktop
Debug in Local Kubernetes Cluster using Cloud Code Extension
How to create a GKE Cluster in GCP Cloud
How to Install Cloud Code Extension in VS Code
Debug in Remote GKE Cluster using Cloud Code Extension
Debug in Docker Container using Remote Development Extension Pack
The course initially starts with the basics of debugging and then slowly moves to the practical aspects of debugging with easy examples. Once the primary aspects are covered, the basic and advanced debugging features of VS Code are explained.
The sections Practice Activities for Simple Debugging Problem Scenarios and Hands-on Solutions and
Practice Activities for Advanced Debugging Problem Scenarios and Hands-on Solutions is about sample problem solving on Debugging problem scenarios by applying the debugging skills you have learned from the course.
By the end of this course, you will master the fundamentals needed for Debugging Java based applications using Visual Studio Code Editor.