3 Plugins can have seperate log level options. They have no connection to the Remmina debug window or any environment variables. (Explained below)
5 More specifically the RDP, GVNC and SSH plugins have options in the connection profile to raise up and/or set the log level.
10 You can just open a debug window inside of Remmina.
12 - Click on the 3 dots at the top of Remmina.
13 - Click on 'Debugging'
15 Just keep that window open and you'll see there will be quite a few debug messages shortly.
18 Firstly, you have to be sure that Remmina isn't already running:
20 - Open a terminal (gnome-terminal, mate-terminal, xterm, alacritty, just to name a few...)
22 Your desktop environment will surely have a terminal, so you won't have to install one.
29 In order to start Remmina in debug mode, we have to tell the underlying library GLib that we want debug messages to be printed into the terminal. For more information, please visit the GLib documentation: https://docs.gtk.org/glib/running.html
31 - For that we start Remmina with the `environment variables` `G_MESSAGES_PREFIXED` and `G_MESSAGES_DEBUG` both set to `all`.
33 ### Installed through apt-get, yum, pacman, rpm, or compiled with sources.
35 G_MESSAGES_PREFIXED=all G_MESSAGES_DEBUG=all remmina
38 # Installed through Flatpak
40 G_MESSAGES_PREFIXED=all G_MESSAGES_DEBUG=all flatpak run org.remmina.Remmina
43 # Installed through Snap
45 G_MESSAGES_PREFIXED=all G_MESSAGES_DEBUG=all snap run remmina
50 When Remmina crashes we need a backtrace if possible
52 ### gdb backtrace with a distribution provided package
54 Install the remmina debug symbols if available
60 At the prompt type run, reproduce the crash, and at the prompt type `bt full`
62 ### gdb backtrace on a snap package
64 You may need to reinstall remmina with `--devmode`
67 snap install --devmode remmina
73 snap run --gdb remmina
76 Follow the steps in `gdb backtrace with a distribution provided package`, instead of `run` it will be `cont`
78 See https://snapcraft.io/docs/using-gdb-gdbserver
80 ### gdb backtrace on a Flatpak package
83 flatpak --user install org.remmina.Remmina.Debug
84 flatpak run --command=sh --devel org.remmina.Remmina
88 At the prompt type run, reproduce the crash, and at the prompt type `bt full`
90 ## Flatpak and Snap package debugging
92 These packages run in a confined environment, you can get a shell and do some tests, including testing with xfreerdp for instance.
97 flatpak --user install org.remmina.Remmina.Debug
98 flatpak run --command=sh --devel org.remmina.Remmina
101 Binaries are installed under `/app/bin`
103 See https://docs.flatpak.org/en/latest/debugging.html
107 Install remmina in `devmode`
110 snap install --devmode remmina
113 You can execute a shell in the confined environment
116 snap run --shell remmina
119 See https://snapcraft.io/docs/debug-snaps especially the considerations about AppArmor and Secomp
124 If you get `broken pipe` errors or if you want to check the RDP connection, install `nmap`, and from a terminal test the connectivity
128 nmap -P0 -p 3389 192.168.20.30
131 Replace the IP with the one of your server
137 3389/tcp open ms-wbt-server
140 If the system you are using is like a gateway or a tunnel, be sure it's correctly connected to the remote RDP server.
142 ## RDP `Timeout waiting for activation`
144 In the advanced tab of the RDP connection profile, set an higher timeout, the default is 900 ms, 15000 or 20000 should be anough large for most cases, tune as per your needs.