Page 1 of 1

Would debug be a good idea?

Posted: Tue Jan 20, 2009 9:09 pm
by Diablo vt
So I'm programming right now, well experimenting and had an idea. Say if I wanted to debug a program whilst it was running, would system("debug"); be a good idea? I figured because debug is a DOS command within the System32 directory and I'm programming DOS based programs(written in C), that it might work. Does that sound like a stupid idea? Maybe I might sound like a noob when I ask this question, but I'm so sure it might work. I would like to hear your advice. Cheers.

Re: Would debug be a good idea?

Posted: Tue Jan 20, 2009 10:13 pm
by MarauderIIC
Use your IDE's debugger. If it's your own program you can run it in debug mode. If it's not, you can attach it to an already-running process, I think.