|
|
# Debugging Python Applications in Flatpaks
|
|
|
|
|
|
It can be useful to run debuggers like GDB when debugging flatpaks. However, for Python applications, it can be more useful to use a Python-specific debugger, like `pdb`. This page describes how to do that.
|
|
|
|
|
|
## Running a Debug Shell
|
|
|
|
|
|
Assuming that you have a flatpak installed called `com.example.first_application`, it can be debugged by running it with the `--devel` option, passing an executable name to the `--command` option:
|
|
|
|
|
|
``` bash
|
|
|
flatpak run --devel --command=bash com.example.first_application
|
|
|
```
|
|
|
|
|
|
This starts a `bash` shell in the sandbox.
|
|
|
|
|
|
## Starting the Debugger
|
|
|
|
|
|
For low level code debuggers, like GDB, we can usually just run the debugger, set breakpoints and run the application.
|
|
|
|
|
|
## References
|
|
|
|
|
|
See the [Debugging section of the Flatpak documentation](http://docs.flatpak.org/en/latest/debugging.html). |
|
|
\ No newline at end of file |