PC Review


Reply
Thread Tools Rate Thread

Debug in csc.exe

 
 
Wallace
Guest
Posts: n/a
 
      22nd Jun 2011
Hi,

I have a problem in csc.exe

I am trying to build an assembly through command prompt(csc.exe)

Here is simple example simulated

Source code:
static void Main(string[] args)
{
#if DEBUG
Console.WriteLine("Debug");
#endif
Console.WriteLine("Normal");
System.Threading.Thread.Sleep(2000);
}

Command:
csc.exe program.cs /debug

Then when I run the exe, it doesnt goes into the DEBUG constant
But when I build using IDE, then things are fine.

Please help.

Thanks,
Prince
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
random Microsoft Visual C++ Debug Library Debug Error =?Utf-8?B?ZGNobWFu?= Microsoft Access VBA Modules 1 26th Apr 2006 03:25 PM
How to tell if your C# code is running in debug mode (debug compil =?Utf-8?B?TWF4IE0uIFBvd2Vy?= Microsoft C# .NET 3 20th Oct 2005 10:39 PM
V Studio 2003 Doesn't Load Supporting DLL Debug Symbols for Windows Service Remote Debug INGSOC Microsoft C# .NET 0 8th Feb 2005 09:19 AM
Debug Error - Microsoft Visual C ++ Debug Library =?Utf-8?B?THVrZXN0ZXI0Mg==?= Microsoft Outlook VBA Programming 5 23rd Nov 2004 01:19 AM
Visual C++ Debug Library. Debug Error! Abnormal program termination John Microsoft Outlook Discussion 1 25th Sep 2004 09:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:39 PM.