Would debug be a good idea?

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
Diablo vt
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 26
Joined: Wed Oct 29, 2008 6:09 pm
Location: London

Would debug be a good idea?

Post 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.
There are 10 types of people in this world; those who understand binary and those who don't.
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: Would debug be a good idea?

Post 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.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
Post Reply