Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C#

Name: Anonymous 2010-06-03 21:29

Anyone know a solution for the following?
I'm creating a program that has both a server and a client. Now I have both sides included in a single project.
What is the best solution for debugging this? i.e. how do I start the 2 classes at once (multiple processes/threads?).

Or would you recommend an alternate approach (splitting the project but sharing certain classes?), and is it possible to start multiple projects in a solution when debugging?

Name: Anonymous 2010-06-03 22:30

>>7
That's the thing: you need to have the server component running in some manner which means you have to have a server hosting it so that you can connect to it.  You can host your own server component and just have the client component ping yourself (127.0.0.1) from the same computer.  You might want to turn the client-server program into a multithreaded program for the debugging, having a thread for the server and a thread for the client, and you could much more easily run the debugger that way, but I don't think that makes your concern any less of a concern.

In as much as I am aware of client-server programs - vaguely, admittedly - you debug them separately and then make them play together to patch up any complications.  The trick is to make sure that they can behave correctly on their own and can never/infrequently produce a message that can cause the other component to trip up.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List