.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Debug PointMonitor callback method

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
AdrianSaf
917 Views, 2 Replies

Debug PointMonitor callback method

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.

2 REPLIES 2
Message 2 of 3
Keith.Brown
in reply to: AdrianSaf

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

Message 3 of 3
AdrianSaf
in reply to: AdrianSaf

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).

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost