Debugging
 
 
 

The Python editor writes to a logfile each line of a script as it is executed. Even if a script crashes MotionBuilder, the last line executed before the crash is written to the logfile and can be read through the Python editor, or directly from the file system.

Usage

  1. In the Python Editor, open a script which you think might be crashing MotionBuilder.
  2. Click the Debug tool to open the logger, and then Debug to execute the script. By default, the logger is off, and no logfile is written. Or just hit Shift+F7 to start the logger silently.
  3. If MotionBuilder crashes, restart it.
  4. Open the Python Editor, and then the Debugger window. From here you can click "Print last executed line" or "Print log". The logfile is written to [MotionBuilder]\bin\lastexec.log. You can specify a custom file by clicking Browse and selecting it.

The logger script is implemented as mbdebugger.py.