How do I see the commands executed during a colcon build?

152 views Asked by At

colcon build invokes cmake --build which invokes the build tool (e.g., make), which invokes the compiler -- along the way it becomes difficult to see how the compiler is being invoked.

The log files only include stdout or stderr. Increasing the verbosity of colcon itself does not increase the verbosity of cmake.

1

There are 1 answers

0
rgov On BEST ANSWER

Per the Colcon how to documentation, to show all subcommand output immediately on the console:

colcon <verb> --event-handlers console_direct+

Secondly, you need to get verbose output from the build tool, in which case setting the environment variable VERBOSE=1 worked. So altogether my command was:

VERBOSE=1 colcon build --event-handlers console_direct+ ...args...