Visual Micro supports all standard Arduino build hooks. Multiple hooks can be specified for each event.
Custom Build Hooks
Visual Micro also provides a custombuild event that will override/replace the entire build process. In this case both the standard build and all other build events will be ignored.
All hooks can reference all board/build properties. Licenced Visual Micro users can use a local project board.txt to define project level events. The platform boards.txt or platform.txt or platform.local.txt can also be used to define hooks (see the visual micro explorer for hardware/platform source locations).
Licenced Visual Micro users can also create platform.txt, boards.txt and applications.txt within the "My Visual Micro" folder structure (see docs or ask in forum for more info)
The examples below define 3 hooks that override the entire build process.
The first hook runs a command the way arduino event hooks and compiler commands are normally run. The output is captured and displayed in the visual studio "micro build" output window.
The last two hooks open windows allowing an external or interactive window/process to be displayed to users.
# custom build event property examples
Some specific hooks are available when debugging, to change the behaivour of the debugger, or to allow for additional controls to be available:
# (check Build Output with "vMicro > Compiler > Show Build Properties" Enabled to see which debugging settings are in use in your project)
# Alters the GDB Attach To Process Command for the JLink Debugger
# Alters the GDB Start Debugging Command for the JLink Debugger
tools.jlink.server.initCmd=-c "init; reset halt"