Debug REPL loses focus after evaluating an expression that returns a value


Whenever an expression is evaluated in the debug REPL that produces a value (as opposed to e.g. an assignment or another statement), the focus switches from the REPL window to the editor.

This is on VS 2010.


ZachA wrote Aug 21, 2013 at 8:12 PM

This behavior is a regression introduced with the fix for https://pytools.codeplex.com/workitem/874. Unfortunately, there is no public API in the VS debugger infrastructure to either ask to refresh break state (locals, etc.) without affecting focus, or to get an event when break state handling, including focus handling, is complete. This leaves our solution to https://pytools.codeplex.com/workitem/874 (keeping break state (locals, etc.) up to date with changes in the debug REPL) with the nasty side effect of automatically changing focus to the editor window. Reverting the fix for https://pytools.codeplex.com/workitem/874 effectively fixes this focus change issue.