'Cannot retrieve variable's value during remote debugging

Using Qt 6.2.0 and Qt Creator 5.0.2 under Ubuntu 20.04, I build my Qt application in debug mode. When running it locally I can see the values of the variables as expected:

enter image description here

Instead, the very same code, if deployed to a remote machine (that runs Ubuntu 20.04 as well) cannot be inspected anymore:

enter image description here

Am I missing something in order to debug the code remotely?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source