How to debug a plugin?

 
 
 
Posted by:MrSparkle
Data created:27 April 2010

Hi,

I tried to implement ParameterBlocks into the simple Plane tutorial plugin. Everytime I compile the DLL, 3ds max hangs and doesn't respond anymore. I tried to debug using breakpoints but it didn't work. So how can I debug my plugins while 3ds max is running?

Christian

Are you trying to recompile while 3dsmax is running? You may need to reset your scene to make sure that any instances of your plugin are cleared before it can be reloaded in a running instance.

Typically to debug you'd first launch 3dsmax normally, then inside your c# project go to Debug->Attach to process... and pick running 3dsmax process. Then you can set breakpoints, catch exceptions, etc.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Hi

In order to debug I have followed your instructions and attached the c# project as debugging process to the running 3dsmax - but the breakpoints I set within the project are never reached! What is the reason?

I am using 3dsmax 2009 64 bit and Visual Studio 2005. Thx in advance

Michbeck

It works fine with VisualStudio 2010, thank you!

Christian

Glad it works for you Chrisrian :)

Michbeck: Sorry for the delay, somehow I missed your post. Please make sure to copy the generated .pdb file along with your .dll to the same directory. .pdb contains all the debug information so it must be present for debugging.

Marsel Khadiyev (Software Developer, EPHERE Inc.)