Eclipse: is it possible to set a breakpoint on an entire module

I have the following 2 questions regarding the Eclipse debugger:

  • The application I'm working in consists of a lot of Maven modules. Is it possible to set a breakpoint on an entire module?

  • I often have to work on applications that I don't know about before and therefore don't know where to put the breakpoint. Is there a good place to set a breakpoint in such applications to stop the debugger? Then I can just use the step debugger to track and see what the code is doing.

thank

+3


source to share


1 answer


  • No, breakpoints are a point, namely a line, in your code where you want to stop execution. The JVM has no concept of individual Maven modules, so it cannot be broken down on that basis.

  • What information do you start with? Presumably, you are literally not looking at the .zip code you know nothing about. You can put a breakpoint in the method main()

    to break (almost) as soon as the application starts, or define other main classes and place breakpoints in them. Other than the actual application entry point ( main()

    etc.) There is no standard "good" place to put a breakpoint to see what the code is doing.



+1


source







All Articles