GDB debugging

Asset Tracker Template

tags
Asset Tracker Template

To debug the template with the GNU Debugger (GDB), use the following west command:

# Attach GDB, skip rebuilding application
west attach --skip-rebuild

The following GDB commands are the most common ones:

(gdb) tui enable
(gdb) monitor reset
(gdb) break main
(gdb) continue
(gdb) backtrace
(gdb) print variable_name
(gdb) next
(gdb) step

For more information, see the following documentation: