Mistake on this page?
Report an issue in GitHub or email us

Debug builds

After you've set up your local debug toolchain, you need firmware that includes program symbols (an .elf file). Because the Arm Mbed Online Compiler only produces binaries that omit the program symbols, you need to compile locally using Arm Mbed CLI.

Note: Make sure to do a clean build when switching to and from debug and release by removing the BUILD folder.

Compile commands

Arm Mbed OS 5.2 and later

$ mbed compile --profile mbed-os/tools/profiles/debug.json

Arm Mbed OS 5.0 and 5.1

$ mbed compile -o debug-info

Arm Mbed 2.0

$ mbed compile --profile .temp/tools/profiles/debug.json

Exporting with debug symbols

You can also enable debug symbols when exporting your project by using:

$ mbed export -i uvision -m K64F --profile mbed-os/tools/profiles/debug.json

Make release builds by using:

$ mbed export -i uvision -m K64F --profile mbed-os/tools/profiles/default.json
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.