Go up to Debugging Facilities
Go forward to Controlling Execution

The Mode Command

mode [ source | machine ]
When a "tmem' file is produced using the "c--' compiler, information is included in the "tmem' file which enables the debugger to display information about the executing program at either the source code level or at the machine code level. The debugger's "mode" determines whether information is displayed at the source or machine level. The mode also determines the interpretation of the arguments to several other debugger commands.

When the interpreter first reads the "tmem' file to be executed, it checks for the presence of information about the source program. If such information is found, the debugger is initialized in "source" mode. Otherwise, it is placed in "machine" mode. If source code information is available, the user can later change the debugger's mode using the "mode' command.

The mode command takes one optional argument indicating which mode is desired. If included the argument should be either the word "source" or the word "machine". Actually, any prefix of one of these words will be recognized. When the command is entered with an argument the debugger switches to the requested mode. When the command is entered with no argument, the debugger switches from whatever mode it had been in to the other mode.



Up Next