|
-
January 16th, 2006, 07:57 AM
#1
run without debug
hi,
i need to run my program without debug in order to get some more output to my console application.
for example-
the user enters "abc" so i want that the output will be "name:abc"
and i need to do that while im runnign my program without debug.
how can i do that?
thanks
-
January 16th, 2006, 08:06 AM
#2
Re: run without debug
i need to run my program without debug
If you want to run your application without the debugger attached you can either start it from the command prompt or (I am assuming Visual Studio) click 'Start without debugging' in the 'Debug' menu (Ctrl + F5).
- petter
-
January 16th, 2006, 08:23 AM
#3
Re: run without debug
 Originally Posted by ppl1
hi,
i need to run my program without debug in order to get some more output to my console application.
for example-
the user enters "abc" so i want that the output will be "name:abc"
and i need to do that while im runnign my program without debug.
how can i do that?
thanks
Your question is kinda vague. Do you want to print something in the immediate window while your app is running. You can use
Code:
//this will be printed in the output window in the Visual Studio IDE
System.Diagnostics.Debug.WriteLine ("Hello There");
Last edited by Shuja Ali; January 16th, 2006 at 08:36 AM.
Reason: Confused this thread with VB 6
-
January 16th, 2006, 08:56 AM
#4
Re: run without debug
and if i want it to be printed in the console?
-
January 16th, 2006, 08:59 AM
#5
Re: run without debug
ok i get that...
thanks for the help
-
January 16th, 2006, 01:30 PM
#6
Re: run without debug
 Originally Posted by ppl
i need to do that while im runnign my program without debug.
use Debugger.IsAttached property for determining if a debugger is attached to the process
-
January 17th, 2006, 10:01 AM
#7
Re: run without debug
You could also use the functionality out of the System.Diagnostic.Trace class.
It has a similar functionallity as the System.Diagnostic.Debug class. The advantage or disadvantage of the Trace class is that it also make output when you have a release build.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|