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 4 3278
Use
System.Diagnost ic.Debugger.Bre ak() to open an instance of Visual Studio as a
debugger.
Good Luck!
Rafael.
"m11533" <m1****@discuss ions.microsoft. com> wrote in message
news:FB******** *************** ***********@mic rosoft.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
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.Diagnost ic.Debugger.Bre ak() to open an instance of Visual Studio as a debugger.
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****@discuss ions.microsoft. com> wrote in message
news:30******** *************** ***********@mic rosoft.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.Diagnost ic.Debugger.Bre ak() to open an instance of Visual Studio as a debugger.
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****@discuss ions.microsoft. com> wrote in message
news:FB******** *************** ***********@mic rosoft.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 in a source code, maybe the source code
becomes bigger that some hidden threshold, the debugger can't enter into
this code anymore. I can use this web service, all methods but can't see in
debugger what's going on. I have already catched this...
|
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 the ASP application and the
breakpoints are hit but the breakpoints in the asp.net application are never
hit. This used to work and I'm not sure what happened to cause it to
break....I've read all of the posts/documents that I can find but I...
|
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 converted/developed with VB.NET.
What I want from debugging is to be able to step into the methods in
the DLLs called from ASP scripts using Visual Studio .NET.
Background:
For typical script debugging issues, you can read and follow the two
documents on...
|
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 will not currently be hit. No symbols have been loaded for
this dokument"
Any suggestions to why the breakpoints is not hit will be highly
appreciated.
|
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 configured to
debug. However, the project has all the settings and I can debug it if
I remove the SSL requirement. How can I debug a project that where the
virtual directory is set to require SSL?
| |
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 project in debug mode (by
hitting F5) it gives an error message
"Error while trying to run project: Unable to start debugging on the web
server.
|
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 while trying to run project. Unable to start debugging. ASP
debugging is disabled because the ASP process is running as a user that does
not have debug permissions. Click Help for more information."
This is Windows 2003 Server, logged in as...
|
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 just go through each
file/folder and right-click, selecting "Include in project". The IDE is nice
in that it checks, verifies id tags, etc. What am wondering is whether it's
possible to debug my ASP website using the MS Visual Studio.NET's...
|
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 some error related to FrontPage extensions. I couldn't
exactly understand the error. I tried to create the project in C:
\Inetpub\wwwroot. If I just open a ASP file (by navigating to the
File-->Open File... menu), then Interdev doesn't give the...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |