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
- In the Python Editor, open a script which you think might be crashing MotionBuilder.
- 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 press Shift+F7 to start the logger silently.
- If MotionBuilder crashes, restart it.
- 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.