473,508 Members | 2,428 Online
Bytes | Software Development & Data Engineering Community
+ 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 1425
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
1628
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
25182
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
5578
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
3204
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
4173
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
1293
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
260
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
1029
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
5013
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
2790
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...
0
7231
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7133
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
7336
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
7405
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7066
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
3214
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1568
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 ...
1
773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
435
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.