Closed Thread
Results 1 to 5 of 5

Thread: Debug Mode

  1. #1
    dirkfirst is offline Programming Expert
    Join Date
    May 2006
    Posts
    354
    Rep Power
    23

    Debug Mode

    If I am in debug mode I want to display a message box, what is the variable that determines if I am in debug?

    Code:
    if (debug) {
       MessageBox::Show("Debug");
    }
    ??

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Paradine is offline Learning Programmer
    Join Date
    Oct 2006
    Posts
    48
    Rep Power
    0
    I'm not sure I understand. Why don't you just create a static variable and set that to true or false. If you are in debug, set to true. Then use your if() statement

  4. #3
    Void's Avatar
    Void is offline Programming Expert
    Join Date
    Jun 2006
    Posts
    410
    Rep Power
    23

    Determine if you are in debug mode

    Use [Conditional("Debug")]

    Code:
    [Conditional("Debug")]
    private void whatever(){
    MessageBox.Show("Debug");
    }
    Void

  5. #4
    stephen0606 is offline Newbie
    Join Date
    Sep 2007
    Posts
    8
    Rep Power
    0
    i've download the visual c++ from the microsoft website in express edition but y cannot compile?? izit dis is d feature donot own by express edition or i miss download something???

  6. #5
    NeedHelp Guest
    What error do you get when you try to compile?

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. using Devcpp4.9.9.2 can't run or debug
    By omeganeu in forum C and C++
    Replies: 2
    Last Post: 02-11-2010, 03:31 AM
  2. Speed up the debug mode in Visual c++2008
    By dparas in forum C and C++
    Replies: 3
    Last Post: 06-24-2009, 05:52 AM
  3. DOS Debug
    By youwish in forum General Programming
    Replies: 2
    Last Post: 08-27-2008, 10:44 AM
  4. debug program( do not run)
    By sureyan in forum C and C++
    Replies: 7
    Last Post: 03-11-2008, 01:01 AM
  5. Debug Vs. Release
    By NeedHelp in forum C# Programming
    Replies: 1
    Last Post: 07-12-2006, 07:44 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts