Author Topic: Question: Debugging while developping plugins for WM Pro  (Read 5593 times)

0 Members and 1 Guest are viewing this topic.

howardzzh

  • WM Pro Beta Tester
  • World Machine Veteran
  • ***
  • Posts: 22
    • View Profile
    • Terrain Synthesis
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!
Howard

Remnant

  • Author
  • World Machine Guru
  • *****
  • Posts: 2311
    • View Profile
    • http://www.world-machine.com/
Re: Question: Debugging while developping plugins for WM Pro
« Reply #1 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.
« Last Edit: July 01, 2007, 03:00:42 AM by Remnant »
-- Stephen Schmitt
- Creator of World Machine

howardzzh

  • WM Pro Beta Tester
  • World Machine Veteran
  • ***
  • Posts: 22
    • View Profile
    • Terrain Synthesis
Re: Question: Debugging while developping plugins for WM Pro
« Reply #2 on: July 01, 2007, 07:32:50 AM »
Excellent! Just what I wanted. Thank you so much for the help!
Howard