[Closed] 3ds max 2010 debug problem
Hi, I am a newbie in 3ds max sdk. I have tried to debug a plug-in with VS2008 SP1 and 3ds max 2010 sdk under windows vista 64bit. When I execute 3dsmax (run from visual studio) I get the error: Protection Error: Debugger detected – please close it and restart! Any idea? Thanks in advance. Joel.
I tried to debug another way. Running 3ds max 2010 and attach process from visual studio 2008. The problem now is when I put some breakpoints. Breakpoints are disabled because “The breakpoint will not currently be hit. No symbols have been loaded for this document”. How can I debug my plug-ins in 3ds max??
Joel
If i remeber with 3ds Max 2010, the way the plugins can be debugged has changed.
You have to debug the second way you’ve tried by attaching 3ds Max 2010 process.
Make sure you build the hybrid configuration. The debug configuration is for use with a 3ds Max debug version (you can break into 3ds Max code, it’s a special version delivered only to few developers).
The configuration I use is “Hybrid”. I use the wizard that comes with the 2010 SDK.
When the compilation finishes, it creates several files in the next path:
c:\Program Files (x86)\Autodesk\3ds Max 2010\plugins\
the files are:
maxproject1.dlo
maxproject1.ilk
maxproject1.dlo.idb
maxproject1.dlo.pdb
“maxproject1.dlo” is the DLL with the plug-in for 3ds max.
“maxproject1.dlo.pdb” holds debug information, then I don’t understand why it appears the message: “The breakpoint will not currently be hit. No symbols have been loaded for this document” when I put a breakpoint.
Joel
More information. When I open the Modules window in Debug I can’t see my plug-in “maxproject1.dlo” file loaded. But, when I start 3ds max, it appears in the plug-in manager as loaded. I tried to copy the files to the “stdplugs” folder instead of “plugins”, the problem persists. Why visual studio says that my plug-in file isn’t loaded when in fact max is loading it?
Joel