New Developer Tools are Available for Macros

Meet Macro Debugger and Object Browser

December 10, 2017

Macro Editor now allows running macros step by step under the debugger via the or buttons. This will switch the editor into the debugger mode and will display the next statement with a  yellow background, activate the Object Browser with local variables and show the debugger buttons at the bottom:

Macro Debugger

Once in the debugger mode, you can step through the macro and see the local variables in the Object Browser. Following buttons appear in the debugger mode:


You 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 button. Object Browser displays local variables currently in use in the macro under Locals section, allowing you to see the types and values of them.


These additional developer tools are available via Onetastic Developer License. You can find more details here.


Watch the short video below to learn more about how to use these tools:



Omer Atay - 2018-01-24
Dmitry Shafranov: That sounds like a great idea
Dmitry Shafranov - 2018-01-14
Great update! I am in the process of learning OneTastic's language / object model and am wondering it there is a way to copy the macro source code as it is displayed in the editor (ideally with formatting info such as color and indentation, similar to the source code that you see in OneTastic's tutorial HowTo section). I can copy the xml version of the code from the dialog window that pops up when clicking "Edit XML" button, but it is a bit hard on the eyes.

Omer Atay - 2017-12-13
MBI: Please contact for more info on macro security

Other Posts

Show all posts