MP Watcher

The MP Watcher is very similar to debug mode in the editor. It is a separate window that allows you to view the current values of all command arguments as a script is executing. However, the MP Watcher adds each line to a list as it is executed. This means that unlike debug mode in the editor, if a script calls a subroutine, the subroutine’s values can be seen while that subroutine is executing. Moreover, in a loop each iteration through the loop will add additional lines to the list, whereas in debug mode the previous iteration is “overwritten” with the current iteration’s values.

The MP Watcher is shown in below. It will only show commands that are executed starting from the time that the window was opened. In other words, it is possible to run partway through a script, then open the MP Watcher. Only commands from that point on will be displayed.

Scripts will run noticeably slower with the MP Watcher open, so make sure that this window is not open when execution speed is important. (Typically, this is fine, since the window is only used during the testing phase of script development).