Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
@@ -10,11 +10,37 @@ Assuming that you have a flatpak installed called `com.example.first_application
...
@@ -10,11 +10,37 @@ Assuming that you have a flatpak installed called `com.example.first_application
flatpak run --devel--command=bash com.example.first_application
flatpak run --devel--command=bash com.example.first_application
```
```
This starts a `bash` shell in the sandbox.
This starts a `bash` shell in the sandbox. You should see something like the following in the terminal:
``` bash
bash-4.4$
```
It is now possible to start debugging the application.
## Starting the Debugger
## Starting the Debugger
For low level code debuggers, like GDB, we can usually just run the debugger, set breakpoints and run the application.
For low level code debuggers, like GDB, we can usually just run the debugger, set breakpoints and run the application. For Python applications, it could be useful to use `pdb` instead. For an application script called `your-first-application` in the `/app/bin` directory, you can start debugging by running the `pdb` module as an option to the `python3` interpreter, passing the script as an argument: