简体   繁体   中英

multithread debugging from immediate window

When I break into the debugger and call a function from the immediate window of VS2010 on the main thread, the function gets executed normally on the same thread. However, it appears other threads are not executed during that time of evaluation, as long as they are in a sleeping state. Can this behavior be confirmed by someone? It seems to be, the interthread communication via the Windows API does not properly work in that context?

Since this potentially makes the evaluations hang in a multithreaded scenario, any workarounds are also highly appreciated.

Edit: the problem seems to be more general. Immediate window obviously - in contrast to step-by-step debugging - does only execute the main/current thread. I was not able to find any official list on the restrictions by now. So if somebody can help with that, would be great as well...

I came across the same problem. It appears to be intended. Or at least documented .

I wonder, why not more people realized this problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM