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). You can either use Mbed Studio (as it produces binaries with debug symbols) or you can 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 command

$ mbed compile --profile mbed-os/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 debug

Make release builds by using:

$ mbed export -i uvision -m K64F --profile release
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.