Debugger Breaks But does not permit stepping
-
Thursday, April 07, 2011 3:28 PM
I am trying to debug an AutoCAD application using AutoCAD MEP 2012 and VS 2010.
The program runs fine until I add a breakpoint. Once I add a breakpoint, I get the No Source Code Available message and my only option is to press F10 (Run).
I never visually hit my breakpoint, however the hit count goes up by one each time I press F10. I am not able to evaluate variables, the Locals window has no data, I cannot step, and visually the debugger does not indicate that I am at my breakpoint.
I do not know how to proceed as pressing F10 repeatedly never gets me to my breakpoint in a mode that allows for viewing variables or stepping.
Allen
Answers
-
Thursday, April 07, 2011 5:55 PM
Since you have no source code, I would not expect F10 (source stepping to work) to work. Also, the reason the locals and variable evaluation do not work is that you are trying to hack a release build, which has NO symbol information.
You know, there is something unethical about trying to hack a (Are you trying to break the licensing??) product that a lot of people spend a lot of time on, and which perhaps you didn't buy. Especially a product (AutoCAD MEP 2012) that hasn't been released to the public yet.
And I confirmed that you aren't an Autodesk Employee. And I bet $100 that disassembling code is strictly against NDA's for beta testers.
- Marked As Answer by eryangModerator Wednesday, May 11, 2011 5:33 AM
All Replies
-
Thursday, April 07, 2011 4:20 PMCorrection I have to press F5 (Run). F10 does not work.
-
Thursday, April 07, 2011 5:55 PM
Since you have no source code, I would not expect F10 (source stepping to work) to work. Also, the reason the locals and variable evaluation do not work is that you are trying to hack a release build, which has NO symbol information.
You know, there is something unethical about trying to hack a (Are you trying to break the licensing??) product that a lot of people spend a lot of time on, and which perhaps you didn't buy. Especially a product (AutoCAD MEP 2012) that hasn't been released to the public yet.
And I confirmed that you aren't an Autodesk Employee. And I bet $100 that disassembling code is strictly against NDA's for beta testers.
- Marked As Answer by eryangModerator Wednesday, May 11, 2011 5:33 AM
-
Friday, April 08, 2011 1:33 PM
Hi Chris,
I am an a developer of addon tools for AutoCAD. The breaks are in my code and I do have my source code. The debugger claims to be breaking on my code, but does not give an indication that that is in fact true.
I have no desire whatsoever to hack the autodesk code, but I would like to be able to debug my code.
Allen
-
Tuesday, April 12, 2011 3:48 AMModerator
Before press F5 to skip step-by-step debugging, could you please check whether the pdb file is loaded properly from correct folder? you can select Debug -> Windows -> Modules, on the Modules window, right click the symbol item, select Symbol Load Information, from the pop up window, you can see whether the pdb file is loaded and where the pdb file is loaded from.
By the way, is your code optimized?
Eric Yang [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

-
Tuesday, April 19, 2011 2:19 AMModerator
Hi, any update?
Eric Yang [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

-
Tuesday, April 19, 2011 3:40 AM
I"m so sorry, I entirely misconstrued your post here.
-
Wednesday, April 20, 2011 4:52 PM
No problem. I probably didn't word it very well. It was my first post to the forum.
Allen
-
Wednesday, April 20, 2011 4:53 PM
Eric,
I had to switch back to AutoCAD 2011 for my next release because of the problems. It doesn't happen with 2011 so I will have to try your suggestions in a few weeks when I go back to 2012.
Thanks, Allen

