Debug PointMonitor callback method

Debug PointMonitor callback method

AdrianSaf
Enthusiast Enthusiast
1,168 Views
2 Replies
Message 1 of 3

Debug PointMonitor callback method

AdrianSaf
Enthusiast
Enthusiast

Hello,

 

I have a PointMonitor callback that I want to debug into.

Whenever the breakpoint in the callback method is hit (Editor_PointMonitor) Visual Studio breaks but does not go to source - instead it give me a message saying "Code Not Running - The current thread is not currentlly running or the call stack could not be obtained."

 

currentDoc.Editor.PointMonitor += Editor_PointMonitor;

private void Editor_PointMonitor(object sender, PointMonitorEventArgs e)
{
//breakpoint here int i = 1; i++; //some stuff }

 

If I remove the breakpoint from the callback I can debug the rest of the application. I'm usng VS 2013 but I've tried it with VS 2010 and it's the same.

Did anyone else have this issue? How did you solve it to actually do the callback debug?

 

Thank you.

0 Likes
Accepted solutions (1)
1,169 Views
2 Replies
Replies (2)
Message 2 of 3

Keith.Brown
Advisor
Advisor

Debugging point monitor events are difficult because most of the time you inadvertantly move the mouse while debugging which will probably invalidate your code

0 Likes
Message 3 of 3

AdrianSaf
Enthusiast
Enthusiast
Accepted solution

Found my answer here: http://through-the-interface.typepad.com/through_the_interface/2011/09/no-source-available-when-debu...

 

But disabling the fiber disables some of autocad's functionality (especially for AutoCAD Electrical).

0 Likes