This documentation is archived and is not being maintained.

How Can I Keep Focus when Stepping Through My Program?

Problem Description

My program has a window-activation problem. Stepping through the program with the debugger interferes with my ability to reproduce the problem because my program keeps losing focus. Is there any way to avoid this?


If you have a second computer, use remote debugging. You can operate your program on the remote computer while you run the debugger on the host. For more information on remote debugging, see selecting a remote machine.

See Also

Debugging Visual C++ FAQs | Attaching To a Running Program or Multiple Programs | Debugging Visual C++