Can not hit breakpoint while debuging

Can not hit breakpoint while debuging

viper_007
Advocate Advocate
1,063 Views
4 Replies
Message 1 of 5

Can not hit breakpoint while debuging

viper_007
Advocate
Advocate

Hi, I've been learning AutoCAD .NET API for several days. There's a strange problem confused me. I can't hit the breakpoint in any VS solution about AutoCAD .net api while I'm debugging.

Here's my development environment: Win 7 64bit, VS 2013, AutoCAD Map 3D 2011.

Looking forward to your help!

聚傲气于一身,显傲骨之精华
0 Likes
Accepted solutions (1)
1,064 Views
4 Replies
Replies (4)
Message 2 of 5

norman.yuan
Mentor
Mentor

You did not say, but I 'd guess that the breakpoint is placed in code of a UI, such as Windows form/usercontrol.

 

You need to disable "FIBER" by entering command "NEXTFIBERWORLD" and set it vale to 0 and restart AutoCAD session. For more information, search Kean's blog for "Fiber"

Norman Yuan

Drive CAD With Code

EESignature

0 Likes
Message 3 of 5

viper_007
Advocate
Advocate

No, I just write some simple function and command in class, not in forms or usercontrols.

Anyway, I've tried to set the value of "NEXTFIBERWORLD" to 0. But when I start the cad application, it prompts a dialogbox  asking me to select "_MAPDMDWGLOADED.shx". I cannot find the shx, so I click Cancel button, and then the cad application will be not responding until I end the process in the taskmanager.

Now the question is, I don't have the chance to set "NEXTFIBERWORLD" back to 1, what should I do?

Thank you all the same.

聚傲气于一身,显傲骨之精华
0 Likes
Message 4 of 5

Anonymous
Not applicable

I've never heard of this "fiber" solution..

 

It's all explained here:

 

http://through-the-interface.typepad.com/through_the_interface/2013/11/debugging-autocad-using-visua...

0 Likes
Message 5 of 5

viper_007
Advocate
Advocate
Accepted solution

I've got a nice solution to my problem. 

Look at this page: Hitting breakpoints in .NET Class Libraries while debugging with Visual Studio 2010

There're three method, I like the last one.

Thank you all the same.

聚傲气于一身,显傲骨之精华
0 Likes