I assume you mean that you ran your program through the debugger and it crashed. The debugger works by running your program and then asking the system to hook it up to it, so it can pause, resume, access its memory, etc.
So if your program is crashing it's because it has bugs, and they won't go away by just running the program directly.