0

When my program is paused in Visual Studios 2010 during debugging, like from reaching a break point and me doing a manual step through, the program window becomes impossible to view.

It is a GUI window not a console window, which I run simultaneously with my program and am still able to view. The window seems to be open it's just that when I click its icon on the taskbar it doesn't come to the front of all the other windows. When I minimize all the windows in front of it, I see the outline of the window but it is either blacked out or showing the remnants of previously expanded windows.

I've noticed this with using Visual Studio's before (various versions of it), and after trying other IDE's that didn't have this behavior I notice it more. It would be really helpful to view the program's change's as I step through the program. Anyone know how I can do this?

I searched a long while and couldn't find a single reference to this matter.

4

2 回答 2

0

如果您单步执行由主线程运行的代码,则主线程无法同时轮询消息泵,这是 GUI 工作所必需的。

如果您调试不同的线程,则 GUI 将在您调试时工作。

于 2012-08-07T11:13:56.640 回答
0

窗口不显示的原因是如果主线程已暂停,则不会处理窗口绘制消息。还有哪些其他 IDE 允许您这样做?我还没有遇到任何在 Windows 上执行此操作的本机代码调试器。

于 2012-08-07T11:15:51.690 回答