Thread: Debugging Stuff

  1. #1
    Dr Dipshi++ mike_g's Avatar
    Join Date
    Oct 2006
    Location
    On me hyperplane
    Posts
    1,218

    Debugging Stuff

    When I coded in basic I used to write my own debugging feature for programs. I'm using SDL at the moment. It seems to have no built in text functionality and although I made a crude bitmap font loader for it it would be easier if there was something like a plugin that could be used when a C prog is run that displays all the variables. Or even better lets me edit them while the program is running. Does anything free like this exist? If so what would you recommend?

    Also on errors I use exit(1). Is there then a way that I can pass an error message to an alert box which pops up saying why the prog failed?

    Thx.

  2. #2
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,732
    Also on errors I use exit(1). Is there then a way that I can pass an error message to an alert box which pops up saying why the prog failed?
    Use windows MessageBox()

    ssharish2005

  3. #3
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    Or perhaps AllocConsole() or whatever the actual function is to allocate a new console for your program. Then just use printf() and such.

  4. #4
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by mike_g View Post
    something like a plugin that could be used when a C prog is run that displays all the variables. Or even better lets me edit them while the program is running. Does anything free like this exist?
    Umm... You mean like a "debugger?"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. help needed in organising a debugging contest
    By shrijeetp in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 01-22-2006, 07:45 AM
  2. debugging: sigsegv, segmentation fault???
    By Gonzo in forum C Programming
    Replies: 9
    Last Post: 09-16-2003, 06:56 AM
  3. debugging directx apps
    By confuted in forum C++ Programming
    Replies: 1
    Last Post: 08-16-2003, 08:56 AM
  4. Your stuff
    By smog890 in forum C Programming
    Replies: 6
    Last Post: 06-13-2002, 11:50 PM
  5. Debugging leads to buggy code and longer hours?
    By no-one in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 01-28-2002, 11:14 AM