473,386 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Debugging two processes question/launching two debug processes

I am writing a fairly complex application in c# and Visual Studio .Net 2003.
Right now I am working on a simple console application (to be launched in the
future from a service) that receives messages sent via IP from an external
device. I am also writing a simulator of that external device.

My question: How do I setup the Visual Studio so that when I start debugging
my c# application, both my message sink AND simulator are launched?

I have both applications setup as projects within a single solution, and
have been manually launching both via the right mouse button menu and the
debug/start new instance selections... I remember being able to do this in VS
6.0, so it just has to be possible... I just can't come up with the right
search to find how.

Thanks for your help,
Marc
Nov 16 '05 #1
4 3264
Use

System.Diagnostic.Debugger.Break() to open an instance of Visual Studio as a
debugger.

Good Luck!

Rafael.
"m11533" <m1****@discussions.microsoft.com> wrote in message
news:FB**********************************@microsof t.com...
I am writing a fairly complex application in c# and Visual Studio .Net
2003.
Right now I am working on a simple console application (to be launched in
the
future from a service) that receives messages sent via IP from an external
device. I am also writing a simulator of that external device.

My question: How do I setup the Visual Studio so that when I start
debugging
my c# application, both my message sink AND simulator are launched?

I have both applications setup as projects within a single solution, and
have been manually launching both via the right mouse button menu and the
debug/start new instance selections... I remember being able to do this in
VS
6.0, so it just has to be possible... I just can't come up with the right
search to find how.

Thanks for your help,
Marc

Nov 16 '05 #2
I don't completely follow your suggestion? Are you saying I need to put this
call in my code? Does it go into my simulator or server? I just remember a
project property in VS 6 that let me have it execute a different program in
addition to the current executable.

Thanks again for your help,
Marc

"Rafael Pereyra" wrote:
Use

System.Diagnostic.Debugger.Break() to open an instance of Visual Studio as a
debugger.


Nov 16 '05 #3
Sorry, I was busy and made a very short reply...

Yes if you put that line in your code (C# i don't know the sintax in VB.NET
however I think is the same) at the beginning or wherever you want to debug
your program.

Use the debug version of your program, at that point the program invokes a
debugger (all debuggers installed in your system AFAK). Simply choose a new
instance of Visual Studio and there you go...

A new instance of Visual Studio will popup and inmediatelly attaches to your
process using the debug information available.

Good Luck.
Rafael.
"m11533" <m1****@discussions.microsoft.com> wrote in message
news:30**********************************@microsof t.com...
I don't completely follow your suggestion? Are you saying I need to put
this
call in my code? Does it go into my simulator or server? I just remember a
project property in VS 6 that let me have it execute a different program
in
addition to the current executable.

Thanks again for your help,
Marc

"Rafael Pereyra" wrote:
Use

System.Diagnostic.Debugger.Break() to open an instance of Visual Studio
as a
debugger.

Nov 16 '05 #4
Debug the service by attaching to process ('Debug' -> 'Processes') and then
IIRC there's an option to debug child processes also. You could give that a
bash.

"m11533" <m1****@discussions.microsoft.com> wrote in message
news:FB**********************************@microsof t.com...
I am writing a fairly complex application in c# and Visual Studio .Net
2003.
Right now I am working on a simple console application (to be launched in
the
future from a service) that receives messages sent via IP from an external
device. I am also writing a simulator of that external device.

My question: How do I setup the Visual Studio so that when I start
debugging
my c# application, both my message sink AND simulator are launched?

I have both applications setup as projects within a single solution, and
have been manually launching both via the right mouse button menu and the
debug/start new instance selections... I remember being able to do this in
VS
6.0, so it just has to be possible... I just can't come up with the right
search to find how.

Thanks for your help,
Marc

Nov 16 '05 #5

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

Similar topics

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...
4
by: Totto | last post by:
Hi, Need some help with debugging a asp.net, C# project. When I set a breakpoint and run the application the breakpoint gets a question mark inside, and the "hover message" is: "The breakpoint...
3
by: powerranger | last post by:
I have an ASP.NET web application on a virtual directory that is set to require SSL. After making the settings in IIS I try to debug from VS.NET and I get a message that the project is not...
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...
7
by: Frank | last post by:
I'm running a mixed ASP / ASP.NET environment. I can use the debugger in for the ASP.NET code, no problems. But when I turn on ASP Debugging for the project, I get the error message: "Error...
6
by: KevinGPO | last post by:
I am currently developing a website in ASP (VBScript) using MS Visual C#.NET IDE. I just create a new "ASP.NET Web Application" and point to my local webserver (IIS) of my website address. Then I...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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...

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.