Does C# have a conditional compiler directive for debug mode? I have code that I want to run only if I'm debugging.
tgreer
189
Made Her Cry
Team Colleague
Recommended Answers
Jump to PostDoes C# have a conditional compiler directive for debug mode? I have code that I want to run only if I'm debugging.
yeah c# uses directives
#if DEBUG Do this in debug; #else do this optionaly if not in debug #endif
Jump to Postwould Debug.Assert() do what you are trying to do>?
All 5 Replies
plazmo
1
Posting Whiz in Training
tgreer
189
Made Her Cry
Team Colleague
plazmo
1
Posting Whiz in Training
kedar_challa
0
Light Poster
nathon
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.