Host tools in snap shell

Alberto Mardegan alberto.mardegan at canonical.com
Tue Oct 25 15:05:00 UTC 2016


Hi all!
  I've a weird issue in my snap which needs some debugging. I understand
that

  snap run --shell <snap-name>

is the command I want to use in order to start a shell with the same
confinement and environment of my snap (which BTW is in --devmode), and
so far so good. But now I want to use "strace" on my application, and it
seems that while "strace" is available on my host system, it's not
accessible from the snap shell (or I didn't find a way to reach it).

Is adding strace and gdb to my snap the only way to go, or is there some
trick that would allow me to use these tools without modifying my snap?

Ciao,
  Alberto




More information about the Snapcraft mailing list