Debugging¶
Like all software, snaps need to be debugged sooner or later. Debugging is a broad and difficult activity, so these guides focus on the specific debugging and linting features that Snapcraft provides.
While Snapcraft shares debugging methods and practices with software development, there are some patterns to look out for with snaps.
Each linter in Snapcraft checks for different categories of problems, and has specific remedies.
With especially difficult problems in snaps, you can use GDB to debug the build environment of the snap.