vscode-java-debug
vscode-java-debug copied to clipboard
Function breakpoint on methods of static inner classes does not work
I am able to set the function breakpoint on methods of top level class e.g.
com.example.starstar.StarstarApplication#main
but the same does not work for methods of inner static class methods e.g.
com.example.starstar.StarstarApplication.RootController#root
@SpringBootApplication
public class StarstarApplication {
public static void main(String[] args) {
SpringApplication.run(StarstarApplication.class, args);
}
@RestController
public static class RootController {
@GetMapping("/")
public String root() {
return "Hello World";
}
}
}
Environment
- Operating System: Any
- JDK version: JDK17
- Visual Studio Code version: 1.79.2
- Java extension version: v1.20.0
- Java Debugger extension version: v0.52.0
Steps To Reproduce
- Set function breakpoint on method of top level class
- Set function breakpoint on method of static inner class
Run the program.
The function breakpoint on method of top level class works. The function breakpoint on method of static inner class does not work.
Current Result
The function breakpoint on method of static inner class does not work.
Expected Result
The function breakpoint on method of static inner class should work.