Re: Debug or Release mode ?

Tech-Archive recommends: Speed Up your PC by fixing your registry



You can use the DEBUG conditional compilation constant:

#if (DEBUG)
// This is only executed in Debug configuration

#endif
--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"JezB" <jezbroadsword@xxxxxxxxxxxxxxxx> escribió en el mensaje
news:OOwduKFYFHA.1240@xxxxxxxxxxxxxxxxxxxxxxx
> Any way I can programatically test whether my (c#) code is running in
> Debug
> or Release mode ? I want to load a smaller dataset when running in debug,
> for testing purposes.
>
>


.



Relevant Pages

  • Re: Problem only in release version
    ... Carlos J. Quintero skrev: ... >> there some part of the code in a project that might differ in debug and ... Since the settings of each configuration (Debug / ...
    (microsoft.public.dotnet.framework)
  • Re: Test Debug / Release Mode
    ... Carlos J. Quintero ... design and document much faster. ... > debug, for testing purposes. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Commenting the source code.
    ... > Do you comment your source code while coding or after coding. ... break down the design to be more specific ... write, document, compile and debug debug fuctions. ... Whereas successfull means dedect bugs, ...
    (comp.lang.c)
  • Re: Books / Articles on Embedded SW Architecture
    ... I deliver products, of any level of complexity, when they're bug-free. ... not crash" in mind) takes less time, mainly because it cuts out the whole asymptotic "reducing bugs to nearly but not quite zero - until we run out of time" phase. ... printing debug lines to stdout etc all have their usefulness and should be designed in from the ground up. ... Acceptance of failure is far too common in s/w design, and simply unacceptable in embedded work. ...
    (comp.arch.embedded)
  • Re: Error when saving new data for employees table
    ... Private Sub cmdClose_Click ... If you can get a Debug button on the error message, ... I really doubt if the Dirty = False line is causing the ... aware that DoCmd.Save saves the form's design, ...
    (microsoft.public.access.formscoding)