Search code examples
javaeclipseantbuild-process

Learning how to use build tools instead of an IDE. Confused on how debugging fits in


When I'm using my IDE, I can write my source code, and press a button to build and debug my code, and have the ability to step through it.

But what is the workflow like when using a build tool along side of an IDE when it comes to debugging? How do people generally debug their code in an IDE if they build their projects using a build tool?

I feel like I'm missing something simple here.

I'm using Eclipse and ANT if that matters.

Thanks


Solution

  • Eclipse (and other IDEs) can attach to running Java processes, also if they are not started by the IDE. see Attach debugger to application using Eclipse

    using suspend=y you can wait for the debugger to attach.