0

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

jmrah
  • 5,715
  • 3
  • 30
  • 37

1 Answers1

1

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.

Community
  • 1
  • 1
user140547
  • 7,750
  • 3
  • 28
  • 80
  • Does this still apply for a simple HelloWorld application that starts and finishes in under a second? – jmrah Jul 07 '15 at 16:01
  • Interesting. So the idea is to have a 'run-in-debug-mode' target in your build script, and then attach your IDE to it to start debugging? – jmrah Jul 07 '15 at 16:53
  • Thanks. I'm going to try this out. – jmrah Jul 07 '15 at 17:13