Two Projects - One Tomcat - One debugger? (IDEA v9)

Hello!

I've got two projects open in IDEA right now. Let's say one is an API server project, and the other is some unrelated client project that happens to use the API.

In the course of development I've made changes to both the client project and the API server itself. They both are deployed via Maven to the same Tomcat 6 instance, and I'm able to attach the debugger to each project individually.

The thing I'd like to do though is be able to put break points in either project (the api server, or the client application) and only have to attach to the process once. Since I can only have one debugger attached at a time, it seems like I should be able to do this... but I can't figure it out.

Any help would be most appreciated. It's annoying having to jump back and forth between each project's debugger.

4 comments

have you tried merging your two projects ? it should solve your problem

0

What do you mean merging the projects? I'd like to be able to only need to check out the API server code once, no matter how many client applications I develop...

Surely you don't mean to check out the server once per client?

0

IF you're using maven, you can create an aggregate pom (packaging = pom) "importing" your server and client project as modules and use this as your IDEA project.

0

There is no way to use single debug session for two IDEA projects. However you can attach classes and sources of API server project to the client
project as a library and start debugger from the client project. If you don't want to modify these project you can create a third project, add classes
and sources of both projects as a libraries to the third project and start debugger from it.

Hello!

I've got two projects open in IDEA right now. Let's say one is an API server project, and the other is some unrelated client project that happens to use the API.

In the course of development I've made changes to both the client project and the API server itself. They both are deployed via Maven to the same Tomcat 6 instance, and I'm able to attach the debugger to each project individually.

The thing I'd like to do though is be able to put break points in either project (the api server, or the client application) and only have to attach to the process once. Since I can only have one debugger attached at a time, it seems like I should be able to do this... but I can't figure it out.

Any help would be most appreciated. It's annoying having to jump back and forth between each project's debugger.

---
Original message URL: http://www.jetbrains.net/devnet/message/5252862#5252862



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.