TutorialGetting Started with MacrosMacro EditorUser InterfaceMenus and ToolbarEditing Macro StatementsExpression EditorMacro DebuggingHow ToUsing variablesFinding and modifying objectsCreating new page contentAsking for user inputStoring persistent dataSorting objectsSample MacrosConceptsExpressionsObjectsPropertiesVariablesData TypesArraysFunctionsLiteralsOperatorsComments |
Last updated on: February 06, 2021
Also available as a single HTML file Onetastic Macro Documentation > Macro Editor > Macro Debugging Macro Debugging
Macro Editor allows running macros step by step under the debugger via the ![]() Once in the debugger mode, you can step through the macro and see the local variables in the Object Browser. Following menu and toolbar will appear in debug mode: ![]() BreakpointsYou can set a breakpoint on a statement using Toggle Breakpoint button or the F9 key. This works both in the editor and in the debugger. The statements with a breakpoint will show with a maroon background and the debugger will stop when it hits one of the breakpoints. Object Browser
Macro Debugger automatically displays the Object Browser on the right. Object Browser allows
browsing OneNote hierarchy under Current Page, Section, Section Group, Notebook and under all notebooks.
This way you can look into how the objects and their properties are stored in OneNote.
This is also useful while editing a macro and can be activated using Debug >
DemonstrationWatch the short video here to learn more about how to use these tools. |
ReferenceStatementsForEachIfElseWhileExpressionCommentBreakContinueReturnHierarchy ObjectsNotebookRootNotebookSectionGroupSectionPagePage ObjectsTitleOutlineTableColumnRowCellParagraphTextImageEmbeddedFileTagOther ObjectsDialogBoxFunctionsArray FunctionsColor FunctionsData Store FunctionsDate/Time FunctionsDialog Box FunctionsMacro Execution FunctionsObject FunctionsString Functions |