Running Debug in Real Time, possible?

This is a discussion on Running Debug in Real Time, possible? within the Game Programming forums, part of the General Programming Boards category; My combat routine is causing me random crashes and I amwondering if there is anyway I can watch my variables ...

  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    21

    Running Debug in Real Time, possible?

    My combat routine is causing me random crashes and I amwondering if there is anyway I can watch my variables while the program is running in real time. I know I can put break points in debug but that would not serve my purpose here. I am working on MS Visual Studio .NET. Please help if anybody has any suggestions. Thanks.

  2. #2
    Chief Code Coloniser!
    Join Date
    Apr 2005
    Posts
    121
    Why not display them to screen every X seconds? Just add the appropriate code to your render routine to draw text over the top of everything else, and wait for the axe to fall

  3. #3
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    Why not create a console window and redirect cout or cerr to it and then you have a very nice debug window that you can log stuff to and watch variables.

    http://www.codeguru.com/Cpp/V-S/debu...cle.php/c1249/
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  4. #4
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    >>
    I amwondering if there is anyway I can watch my variables while the program is running in real time. I know I can put break points in debug but that would not serve my purpose here
    <<


    erm, yes it would. Step through your program and watch the state of the variables.... or just print them out as suggested above.

  5. #5

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Weird Times I'm getting
    By afflictedd2 in forum Linux Programming
    Replies: 8
    Last Post: 07-23-2008, 08:18 AM
  2. having a real tough time with functions..
    By simstim99 in forum C++ Programming
    Replies: 6
    Last Post: 04-30-2007, 01:48 AM
  3. %16 with double
    By spank in forum C Programming
    Replies: 11
    Last Post: 03-05-2006, 10:10 PM
  4. Help !!! Time is running out !!!
    By khpuce in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 02-14-2005, 11:57 AM
  5. real time game
    By Bingo The Clown in forum Game Programming
    Replies: 3
    Last Post: 07-23-2003, 12:09 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21