About SET DEBUG

Note: The VMDTSET DEBUG subcommand is preferred for new code over SET DEBUG, but SET DEBUG will continue to work.
The SET DEBUG command allows you to perform some debugging in a VM Dump Tool macro without having to change the macro itself. When DEBUG is set to ON the following occurs:
  • A flag is set. This flag is available to any macro via the return code from the QUERY DEBUG command.
  • All subsequent error messages produced by VM Dump Tool subcommands are written to the virtual machine console.

If you have your own user-written macros, you can modify them with a small amount of code so that the flow of control from one macro to another is displayed. Also, you can display non-zero codes returned to the macro. While this new code would be a permanent addition to the macro, you can turn it on and off using SET DEBUG. By writing additional code, you can display more detailed information when DEBUG is ON.

For more information, see Using SET DEBUG.