다음을 통해 공유


How Can I Keep Focus When Stepping Through My Program?

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

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?

Solution

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, see How to: Select a Remote Computer.

See Also

Debugging Native Code FAQs
Attach to Running Processes
Debugging Native Code