B4J Question How to debug two B4J applications ?

amorosik

Expert
Licensed User
I am making a client socket and a server socket in B4J environment
During debugging it would be essential for me to have both the client program and the server program active and in debug mode at the same time
Is there a way to have two B4J programs running simultaneously in debug mode?
 

AHilton

Active Member
Licensed User
Longtime User
Lots of threads on this topic. Even though Erel says that you can't do that, you can. I do it all the time and have for many years. I'm doing it right now, in fact. There are some caveats, though.

First, start up your server app. Then start up your client app. You'll get an error. Then start the client app again. It'll take a bit longer but you'll get an error. Start the client app once more and it'll work.

You can make some minor changes to the server app and save it (to reload the app) and it'll work, too. When stopping and restarting the client app, it'll start right up. But, if you stop both the server and client apps, you'll have to go through the process again.

Yes, it's a major pain to work like this. Yes, it's been requested MANY times to more easily allow us to do this. But, it does work.
 
Upvote 0
Top