Using a python debugger in Silverblue with VSCodium flatpak?

Hello,

I am using Fedora Silverblue 39 and the VSCodium Flatpak from flathub.

I have an issue in that I cannot use the python debugger in order to debug python code.

Since I am running Silverblue I have installed conda in a toolbox container. Hence when I spin up VSCodium and I open a terminal I manually type a command like:

flatpak-spawn --host toolbox run --container container_name bash

This allows me to edit code in VSCodium and through terminal access the toolbox container that has conda installed where I have further python libraries installed (such as poetry).

However I am not sure how to connect/use a debugger in this set up. Does anyone have any ideas?

You might have better luck when using the Dev Containers extension instead of the flatpak-spawn command. Using this extension the IDE integrates much better with the toolbox.

I explained how to do this in an older post, see the flatpak with toolbox integration part.

2 Likes

Interesting - I 'll check it out. Thanks for the reply.

Would it make a difference if both VSCodium and conda were in the same toolbox? maybe even build a self fedora:latest with both ?

Yes, installing vscodium inside the toolbox should also work. I never really tried it though, I prefer using the flatpak because:

  • It does automatic updates.
  • No need to manually create a desktop entry.
  • When using multiple toolboxes (1 for each programming environment) I can reuse the vscodium install.

When using the flatpak it is also easier to use a normal container instead of a toolbox (which is great if you want to prevent stuff cluttering the $HOME directory)

1 Like