How to choose which thread to step through when breakpoints in multiple threads are hit?

I have a project with client and server. I want the server to pause while I step
through the client, and vice versa. I need to pause at breakpoints to avoid
connection timeouts. How can I pause at two breakpoints, and independently step
through each thread?

5 comments

May I suggest dramatically increasing your connection timeouts for testing? Otherwise you're always going to be racing against time.

0

This is why I set the breakpoint, so the timeout is never reached.

Marc Stock wrote:

May I suggest dramatically increasing your connection timeouts for testing? Otherwise you're always going to be racing against time.

0

My point is that if you can adjust the timeout value to a high level, then you don't have to worry about it timing out while you're stepping through on the other machine. Perhaps I don't really get what you're saying. :)

0

Marc Stock wrote:

My point is that if you can adjust the timeout

> value to a high level, then you don't have to
> worry about it timing out while you're stepping
> through on the other machine. Perhaps I don't
> really get what you're saying. :)

Perhaps what he's trying to do is debug both
application simultaneously in the same IDEA instance?

0

Yes, that's it. They're running in the same VM on our development machines.

Jens Voß wrote:

Marc Stock wrote:

>> My point is that if you can adjust the timeout


> value to a high level, then you don't have to
> worry about it timing out while you're stepping
> through on the other machine. Perhaps I don't
> really get what you're saying. :)

Perhaps what he's trying to do is debug both
application simultaneously in the same IDEA instance?

0

Please sign in to leave a comment.