Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

"A macro called a debugger action which is not allowed while responding to an event or while being run because a breakpoint was hit."

$
0
0

Hi to all,
I'm lost with something that should be pretty easy to fix, but didn't found any reference anywhere.
Basically whenever I try to invoke a debugger action in response to an its own event, VS returns the error mentioned in the object.
It clearly says that the debugger actions should not be called while inside a debugger event, but I need to invoke these actions based on the debugger event type. So, it's impossible for me to avoid this.
From what I understand, it has something to do with the reentrancy check that VS does.

Strangely, if I run the functions on a new thread, everything works as expected although I'm pretty sure that doing so, soon or later, will result in something very bad and unexpected.

So, the question is simple: what's the standard and safe way to invoke the debugger functions in response to its events?

Thanks


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>