World Machine Community

Special Interest Groups => Plugin Development Forum => Topic started by: howardzzh on June 30, 2007, 08:02:13 pm

Title: Question: Debugging while developping plugins for WM Pro
Post by: howardzzh on June 30, 2007, 08:02:13 pm
Hi guys,
     I have a really beginner's question; how do you go about debugging while write the plugin code? Is there any other way to spit out text besides the text output in the WM Pro. So far, I couldn't find any way to enable console output. I would really appreciate any help. Thank you!
Title: Re: Question: Debugging while developping plugins for WM Pro
Post by: Stephen on July 01, 2007, 02:57:42 am
I'd recommend using MSVC's debugger directly!


In the project settings, Under Debugging set the "Command" item to the path to your WM executable.

I like to add a post-build action as well that copies the just-built DLL to the plugin folder.

In any case, once you've done the above just just hit F5 which will first build the plugin, and then launch WM with the Debugger attached to the process.

Set a breakpoint in your Activate() function. Add the device to the world and you'll drop into the debugger as soon as WM calls your code.
Title: Re: Question: Debugging while developping plugins for WM Pro
Post by: howardzzh on July 01, 2007, 07:32:50 am
Excellent! Just what I wanted. Thank you so much for the help!