Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / August 2005

Tip: Looking for answers? Try searching our database.

Debugging two processes at the same time

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Reid Roman - 24 Aug 2005 17:03 GMT
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
Frans Bouma [C# MVP] - 24 Aug 2005 20:24 GMT
> 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

Signature

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

Reid Roman - 24 Aug 2005 22:36 GMT
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
Frans Bouma [C# MVP] - 25 Aug 2005 08:40 GMT
> Hello,
>
[quoted text clipped - 3 lines]
> 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

Signature

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

Reid Roman - 25 Aug 2005 15:43 GMT
Ok,

Thanks for the information.  I will try this.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.