How do I bring up the debugger when code executes?
I have a program that I wrote that works fine when it is run by itself. I gave it out to a few people who added it to their scripts. While it doesn't crash it does behave poorly from within scripts.
What I would like to do is to put some type of statement inside my C program that would cause visual C++ debugger to be brought up so I can start debugging.
Is there such a statement? I was told this is possible but I can't figure out how to do it.
BTW, to elaborate: 'int 3' causes the CPU to issue a 'breakpoint' interrupt, which fires up the debugger. The above function does nothing but invoke that statement.