This is an old thread, but I think I've finally found a solution that
always works (none of the other suggestions really worked for me):
When the program is running, first pause it from Visual Studio, then
place the breakpoint, then resume running, and tadaam! :)
Andras
Monday, February 20, 2006, 8:00:07 PM, you wrote:
> While my application is running, I can use alt-tab to switch to other
> programs and then switch back, and all this seems to work fine. However,
> when I switch to Visual Studio, and put a breakpoint in the source, while
> the program is running under the debugger, the program just.. well.. I
> don't know how to describe it, it kinda hangs, but it does this in a very
> strange way. The VS debugger says it's still running, but when I try to
> break into it (using the break all command that should just stop at the
> current instruction, wherever it is), it can't. The callstack window does
> not respond anymore, and I can not continue, or step anymore.. The only
> button on VS that works is the stop debugging. And it's funny, but when I
> say stop, I can actually see a couple more messages in the debug output
> window that my program is writing out..
> Anyone experienced anything like this? Any ideas about what might cause
> it, and possible workarounds?
> This is on VC++ 7.1 /Win32 XP
|