473,387 Members | 1,711 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,387 software developers and data experts.

Trying to debug an exe in VisualStusio .NET.

Luc
Hi all,

I have to debug an exe with the VS studio .NET environment. but first my
exe has to be started using another exe. So I arranged my project properties
to start this first exe. Doing so, my breakpoints are not working.

It seems that the debugger cannot attach itself to my program since it is
started by another exe. I tried using a batch file calling my program but
it's not working. I received an error massge stating I cannot start a
program using a batch file from within the vs.net ide.

Have any ideas?
Jul 21 '05 #1
4 1404
Hi Luc,

You can attach any executable or process to Visual Studio using the menu
Debug->Attach to Process...
However, this requires the process to be running already.

--
Happy Coding!
Morten Wennevik [C# MVP]
Jul 21 '05 #2
Luc wrote:
Hi all,

I have to debug an exe with the VS studio .NET environment. but first my
exe has to be started using another exe. So I arranged my project properties
to start this first exe. Doing so, my breakpoints are not working.

It seems that the debugger cannot attach itself to my program since it is
started by another exe. I tried using a batch file calling my program but
it's not working. I received an error massge stating I cannot start a
program using a batch file from within the vs.net ide.

Have any ideas?


If you require parameters from the 1st exe, you could manually enter
them in the build properties of the second exe. That way, you don't need
the 1st one at all for debugging.

--
Rinze van Huizen
C-Services Holland b.v.
Jul 21 '05 #3
C-Services Holland b.v. wrote:
Luc wrote:
Hi all,

I have to debug an exe with the VS studio .NET environment. but first
my exe has to be started using another exe. So I arranged my project
properties to start this first exe. Doing so, my breakpoints are not
working.

It seems that the debugger cannot attach itself to my program since it
is started by another exe. I tried using a batch file calling my
program but it's not working. I received an error massge stating I
cannot start a program using a batch file from within the vs.net ide.

Have any ideas?

If you require parameters from the 1st exe, you could manually enter
them in the build properties of the second exe. That way, you don't need
the 1st one at all for debugging.


That would be project->properties->configuration properties->debugging.
There you can enter a command line parameters.

--
Rinze van Huizen
C-Services Holland b.v.
Jul 21 '05 #4
Luc
Thank's. It works.

"Morten Wennevik" wrote:
Hi Luc,

You can attach any executable or process to Visual Studio using the menu
Debug->Attach to Process...
However, this requires the process to be running already.

--
Happy Coding!
Morten Wennevik [C# MVP]

Jul 21 '05 #5

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

Similar topics

5
by: Kenneth | last post by:
Hi, I've upgraded to .NET 2003 and I opened an .NET 2002 app and let the new IDE convert it to .NET 2003 project. Then I tried to start the application but it keeps on saying "Error while...
6
by: Frank Wilson | last post by:
Tom, It sounds to me like ASP, not ASP.NET is handling the request for WebForm1.aspx. This is most likely an IIS config issue that may have been caused by order of installation or...
2
by: Murad Khan | last post by:
I recieve the following error when i try to debug my web application: Error while trying to run project.Unable to start on web server.Catastrophic faliure.Would you like to disable future...
11
by: Claude seraphin | last post by:
I'am having this message while trying to rune my asp.net app on win3k server. I have set debug="true" in <compilation section in my web.config . Can anyone help me? Thanks in advance
2
by: Bart Schelkens | last post by:
Hi, I'm writing an ASP.Net programme (using VB.Net) When I press F5 to run and debug, i get the message : Error while trying to run project. Would you like to disable future attempts to debug...
6
by: ray well | last post by:
hi, i tried to run a asp .net project in debug mode, setting breakpoints along the way to debug some problem, and i get a error message "error while trying to run project", with no explaination...
4
by: Luc | last post by:
Hi all, I have to debug an exe with the VS studio .NET environment. but first my exe has to be started using another exe. So I arranged my project properties to start this first exe. Doing so,...
11
by: Ron L | last post by:
I have a barcode scanner which uses a "keyboard wedge" program so that the data it scans comes through as if it was typed on a keyboard. I am trying to have the data in the barcode be displayed in...
2
by: charles-brewster | last post by:
I have progressed the copytext function test page a little since my original post here in the small hours this morning. It now opens a debugging window so I can try to figure out what it is or...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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.