How to Debug the Makefiles of the ModusToolbox Project
There are two ways to debug the makefiles of the ModusToolbox Project:
- Generically supported by GNU Make
- Provided by ModusToolbox
Supported by GNU Make
Append --debug[=options] to the make command, e.g.:
make program --debug=verbose
This parameter enables the GNU Make to print more information in addition to normal processing. The information shows which makefiles and sources were processed and how they were processed.
Alternative options are: all, basic, verbose, implicit, jobs, makefile, none.
See: Options Summary
Provided by ModusToolbox
Append VERBOSE=true to the make command, e.g.:
make program VERBOSE=true
This parameter enables the debug flag so the makefiles can print more messages for debugging. The messages reveal the insights of the ModusToolbox building system.
This is equivalent to setting variable VERBOSE to "true" or "1" in the makefile of your ModusToolbox project. See below:
See section 4.9.1 of ModusToolbox User Guide.