vscode-java-debug icon indicating copy to clipboard operation
vscode-java-debug copied to clipboard

Function breakpoint on methods of static inner classes does not work

Open sandipchitale opened this issue 2 years ago • 0 comments

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

image

@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
  1. Set function breakpoint on method of top level class
  2. 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.

Additional Information

sandipchitale avatar Jul 05 '23 21:07 sandipchitale