I have a general question about debugging with VS 2005 and AutoCAD. Does anyone else suffer the situation where a breakpoint will work correctly on a first debug, but will cause a break back at the first line of code on subsequent runs?
Up till now Ive just considered it a VS quirk. It has started to become a pain in the ass, however, so Id like to do something other than just live with it. Id appreciate any suggestions before I go mucking about in Tools Options Debugging.
Are you using start (F5) or step-into (F11) ?
How are you loading your assembly?
Are you sure there's no other 'stale' copies of your assembly in
the PATH or in the AutoCAD folder, that may be getting loaded
instead of the one you expect to be loaded?
My suspicion is that the assembly you're loading is not the
same version that the .pdb file was generated for.
I'm also assuming you're haven't changed any settings in
your project properties (like don't generate debug info, or
turning on code optimization in a debug build).