Debugging two processes at the same time

  • Thread starter Thread starter Reid Roman
  • Start date Start date
R

Reid Roman

I am in the process of understanding .NET remoting. I am usually using the
Borland IDE and am not as familiar with Visual Studio. Using VS, how can
you hook into both processes with breakpoints?

Currently you can only have one projects marked as the "Startup Project".
Do I need to run two separate VS sessions?

Thanks
 
Reid said:
I am in the process of understanding .NET remoting. I am usually
using the Borland IDE and am not as familiar with Visual Studio.
Using VS, how can you hook into both processes with breakpoints?

Currently you can only have one projects marked as the "Startup
Project". Do I need to run two separate VS sessions?

Start 2 vs.net instances, and attach each one to the process you want
to debug, after loading the source for that project into thte vs.net
instance. Be sure to use a debug build for the processes WITH .pdb
files in place.

Attach using cntrl-alt-P and selecting the machine + process to debug.

Frans


--
 
Hello,

Thanks for the reply. I will work on this and post back if I can't get it
working. I did try to just launch two instances of VS, one for the server
and one for the client and the breakpoints did not have any effect on the
running server app.(both apps are on the same machine).

I will give it another shot.

Thanks
 
Reid said:
Hello,

Thanks for the reply. I will work on this and post back if I can't
get it working. I did try to just launch two instances of VS, one
for the server and one for the client and the breakpoints did not
have any effect on the running server app.(both apps are on the same
machine).

Be sure you run debug builds, and copy the .pdb files to the same
folder as where the .exe is located. Then attaching to the process and
setting/hitting breakpoints is working.

Frans

--
 
Back
Top