Ubuntu – QApplication launched through GDB cannot connect to XServer on WSL2
I recently upgraded my Ubuntu 20.04 WSL image from WSL1 to WSL2. In WSL1, I was able to use QTCreator's debugger (a wrapper around GDB) just fine. But after upgrading to WSL2, it now crashes once it reaches the constructor…