473,462 Members | 1,350 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Debugging two processes at the same time

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
Aug 24 '05 #1
4 1422
Reid Roman wrote:
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
--
------------------------------------------------------------------------
Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
Aug 24 '05 #2
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
Aug 24 '05 #3
Reid Roman wrote:
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

--
------------------------------------------------------------------------
Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
Aug 25 '05 #4
Ok,

Thanks for the information. I will try this.
Aug 25 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: George CK | last post by:
Hi, I'm running on Windows 2003 Server with Framework 1.0, on a CPU on P4 2.4GHz, 256Mb Ram When I attach other processes (one winservice, and also the asp.net w3wp.exe) for debugging, my...
6
by: Dmitri Shvetsov | last post by:
Hi All, Did somebody see the situation when the VS refuses to debug the Web Service at all? I can't catch why, the initially created Web Service can be debugged very easy but after some changes...
5
by: Doug Swanson | last post by:
I have my project(s) set to Debug mode...asp.net debugging is enabled, I've re-registered asp_net. This particular solution has an asp.net and an ASP application in it...I can set breakpoints in...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
16
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the...
0
by: Peter Strøiman | last post by:
Hi I have a windows 2003 test server. I installed a web application on it, including the debug symbol files. I also installed the remote debugger from the Visual Studio 2003 DVD. My client is...
0
by: Simon Harris | last post by:
Hi All, I am trying to debug a on a remote server. Probably not relevent, but I should mention that I have two two projects within 1 solution, the prijects are on different servers, one of which...
3
by: Paul W | last post by:
Even though I've changed my default browser in Windows to NN, VS still insists on firing up IE when I debug. Help please, Paul.
3
by: Arne | last post by:
Is there a secret trick to debugging a Web service? I compile my web service and test app in debug mode. The webservice has <compilation defaultLanguage="vb" debug="true" /> in web.config. I set...
5
by: rn5a | last post by:
Can someone please suggest me a text editor especially for DEBUGGING ASP scripts apart from Microsoft Visual Interdev? I tried using Visual Interdev & created a project but Interdev generates...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.