Accessing the Debugger Dialog

The MAXScript Debugger Dialog can be opened using

The Debugger Dialog

The MAXScript Debugger Dialog runs in a separate thread and is thus independent of 3ds Max.

The Debugger has its own icon and will be represented as a separate application in the Windows Taskbar. This allows it to break the execution of 3ds Max threads while remaining interactive.

The Debugger Dialog is resizable - you can drag the bottom right corner or the borders of the dialog to resize. You can also minimize, maximize and close the dialog as any other window.

The Debuggerdialogprovides the following controls:

Command

This is a command line where you can input Debugger commands to navigate the code frames, query variables, change variable values and execute MAXScript commands in Break mode.

Available commands are:

Output

This is the output window where the code trace-back is output, as well as the results of commands input in the Command line.

Break

This is the button which breaks the execution of the main 3ds Max thread and allows the Debugger to "peek" into the current state of any MAXScript code that was running in that thread. When pressed, the button will be disabled until the Run or Stop buttons have been pressed to continue the execution of the 3ds Max thread. During a break state, the 3ds Max UI will be completely unavailable.

NOTE:

Functions, mouse tools, plugins, and rollouts that are defined in encrypted scripts will NOT have their local variable values dumped during error traceback, or shown in the debugger framesafter a break.This is to prevent low-level access to encrypted commercial code.

Run

Resumes the execution of the main 3ds Max thread after a break. The button is disabled by default and becomes available after a break has been performed.

NOTE:If you hold down the Escape key when you click on the Run button, MAXScript will typically immediately throw an exception. However, if Break on Error is turned on in the Debugger, this exception will cause a break back into the Debugger.

Evaluate

This button causes the command line to be evaluated.

Watch...

This checkbutton opens the Watch Manager dialog which can be used to monitor the values of global and local variables of interest. When checked, the Watch Manager will be opened. When unchecked, the Watch Manager will be closed.

Stop

This button can be used to stop the execution of the code after a break instead of continuing the execution with Run.The Stopbutton resumes 3ds Max execution, but causes an exception to be thrown by the calling script. This exception will not be caught by the Debugger, allowing the running script to terminate.

NOTE:The Stop button is enabled only when execution is broken by a script, not when execution is broken by the Break button.

Clear

This button clears the content of the Output window.

The Debugger Parameters Dialog

The Config button opens the modal MAXScript Debugger Parameters dialog which can be used to customize the Debugger settings and toggle certain features on and off.

The MAXScript Debugger Parameters dialog provides the following options:

See Also