# Debugging Firmware with GDB

**URL:** <https://community.memfault.com/t/debugging-firmware-with-gdb/42>\
**Category:** Blog\
**Created:** [May 21, 2019, 4:57pm UTC](https://community.memfault.com/t/debugging-firmware-with-gdb/42 "2019-05-21T16:57:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![discobot](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.memfault.com/discobot/32/1_2.png) [@discobot](https://community.memfault.com/u/discobot)\
**Post date:** [May 21, 2019, 4:57pm UTC](https://community.memfault.com/t/debugging-firmware-with-gdb/42/1 "2019-05-21T16:57:20Z")

</div>

If I had to choose one significant aspect that I was not aware of before starting my career as a firmware developer, it would be how much time is spent **not actually developing** , and instead **debugging** firmware!

* * *
This is a companion discussion topic for the original entry at [https://interrupt.memfault.com/blog/gdb-for-firmware-1](https://interrupt.memfault.com/blog/gdb-for-firmware-1)

---

<div class="post-metadata">

**Author:** ![kdsch](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.memfault.com/kdsch/32/19_2.png) [@kdsch](https://community.memfault.com/u/kdsch)\
**Post date:** [June 21, 2019, 2:20pm UTC](https://community.memfault.com/t/debugging-firmware-with-gdb/42/2 "2019-06-21T14:20:01Z")

</div>

Thanks for this concise and useful post, which is actually about much more than debugging, as you show exactly how to set up a development environment. I expect that this will reduce the pain of embedded development for many newcomers.

I’m looking forward to the next post about debugging nRF applications with SoftDevices. Please hurry! 😄

Or if possible, perhaps reply with a few pointers about how to do that.

---

<div class="post-metadata">

**Author:** ![mohammad](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.memfault.com/mohammad/32/12_2.png) [@mohammad](https://community.memfault.com/u/mohammad)\
**Post date:** [July 1, 2019, 2:23pm UTC](https://community.memfault.com/t/debugging-firmware-with-gdb/42/3 "2019-07-01T14:23:34Z")

</div>

Thanks, Karl!

I’m hoping to post the article on debugging SoftDevice-based nRF applications soon. In the meantime, you may want to check out the following links:

- [https://github.com/NordicPlayground/j-link-monitoring-mode-debugging/](https://github.com/NordicPlayground/j-link-monitoring-mode-debugging/)
- [https://devzone.nordicsemi.com/f/nordic-q-a/9622/application-debug-with-softdevice/35565#35565](https://devzone.nordicsemi.com/f/nordic-q-a/9622/application-debug-with-softdevice/35565#35565)
- [https://devzone.nordicsemi.com/f/nordic-q-a/10217/debugging-softdevice-applications-with-gdb](https://devzone.nordicsemi.com/f/nordic-q-a/10217/debugging-softdevice-applications-with-gdb)

Hope this helps!

-Mohammad

---

<div class="post-metadata">

**Author:** ![Cathy.Garrett](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@Cathy.Garrett](https://community.memfault.com/u/Cathy.Garrett)\
**Post date:** [July 15, 2019, 11:36pm UTC](https://community.memfault.com/t/debugging-firmware-with-gdb/42/4 "2019-07-15T23:36:39Z")

</div>

- `(gdb) set logging on` to stop logging

should be

- `(gdb) set logging off` to stop logging
