Debugging the Java API
Similar to the previous projects, we start by creating the launch configuration. Call the command palette with Ctrl + Shift + P and select Debug: Open launch.json. In the environment, select Java, as shown in the following screenshot:
VS Code will create the launch configuration with two options. Apart from the mainClass
parameter, the launch configuration is similar to our previous examples. In the first option, we tell the debugger to use the current active file, as illustrated in the following code snippet:
{ 'type': 'java', 'name': 'Debug (Launch) - Current File', 'request&apos...