manual:Macro_Debugger
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| manual:Macro_Debugger [2019/06/14 05:19] – peternlewis | manual:Macro_Debugger [2021/10/15 08:50] (current) – peternlewis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Macro Debugger ====== | ====== Macro Debugger ====== | ||
| - | Keyboard Maestro includes a built-in macro debugger which you can turn on by choosing | + | Keyboard Maestro includes a built-in macro debugger which you can turn on by choosing the [[Menus#Start_Debugging|Status Menu ➤ Start Debugging |
| - | {{ macrodebugger.png? | + | {{ macrodebugger.png? |
| Once debugging, you can control whether new macros start paused or start running. | Once debugging, you can control whether new macros start paused or start running. | ||
| Line 9: | Line 9: | ||
| The macro debugger shows all running macros, and what action they are currently executing (including showing nested actions). | The macro debugger shows all running macros, and what action they are currently executing (including showing nested actions). | ||
| - | Using the associated | + | Using the buttons |
| - | + | ||
| - | {{: | + | |
| * **Continue** the macro – allowing it to run until completion, or until it hits a Debugger Breakpoint action. | * **Continue** the macro – allowing it to run until completion, or until it hits a Debugger Breakpoint action. | ||
| Line 18: | Line 16: | ||
| * **Step In To** the current action, stepping in to any included subaction. | * **Step In To** the current action, stepping in to any included subaction. | ||
| * **Step Out Of** the current action and any other actions at the same level. | * **Step Out Of** the current action and any other actions at the same level. | ||
| + | |||
| + | The buttons on the right let you: | ||
| + | |||
| + | * **Edit** the current action in the editor. | ||
| * **Cancel** the macro. | * **Cancel** the macro. | ||
| + | |||
| + | The button at the top right toggles displaying variables. The debugger will show the ten most recently modified (by this macro instance) variables and a summary of their values. If you want to show more information, | ||
| To debug a macro: | To debug a macro: | ||
| Line 28: | Line 32: | ||
| * Click again to advance to further steps/ | * Click again to advance to further steps/ | ||
| - | All the debugger actions can also be done via [[/action/Debugger_Start|the Debugger actions]]. | + | All the debugger actions can also be done via [[action:Debugger_Start|the Debugger actions]]. |
| Keep in mind that once a macro has started executing, the engine has taken a copy of the macro to execute, so any changes you make in the editor will not affect the execution of the macro (although any changes you make to a sub macro that has not yet started executing would apply). | Keep in mind that once a macro has started executing, the engine has taken a copy of the macro to execute, so any changes you make in the editor will not affect the execution of the macro (although any changes you make to a sub macro that has not yet started executing would apply). | ||
| Line 35: | Line 39: | ||
| If you close the debugger window, the paused macros will resume their normal operation. | If you close the debugger window, the paused macros will resume their normal operation. | ||
| - | |||
manual/Macro_Debugger.1560489542.txt.gz · Last modified: by peternlewis
