Would debug be a good idea?
Moderator: Coders of Rage
Would debug be a good idea?
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.
- MarauderIIC
- Respected Programmer
- Posts: 3406
- Joined: Sat Jul 10, 2004 3:05 pm
- Location: Maryland, USA
Re: Would debug be a good idea?
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.