VSRemoteDebugger icon indicating copy to clipboard operation
VSRemoteDebugger copied to clipboard

Gtk-WARNING **: cannot open display

Open TimJohnHowell opened this issue 3 years ago • 4 comments

Can you share any advice on how to setup display permissions?

TimJohnHowell avatar Sep 13 '22 10:09 TimJohnHowell

Sorry, I'm not sure what you mean? The extension is designed for headless host/client communication.

radutomy avatar Sep 14 '22 08:09 radutomy

Thank you Radutomy. I'm trying to force it to do something its not designed for. I did find a way to setup the DISPLAY environment variable on the Raspberry Pi in the .bashrc script so that VSRemoteDebugger will launch my code on the Pi and display the main window. I wondered if there was a better approach you were aware of.

TimJohnHowell avatar Sep 14 '22 09:09 TimJohnHowell

Sorry, I have no knowledge about that unfortunately.

radutomy avatar Sep 14 '22 09:09 radutomy

@TimJohnHowell That error message is not a permission issue. It typically means you are running the application through SSH or some other terminal to which no X Windows display is attached. When running a GUI application that way, you can tell the system to show the display window on a local display by setting the DISPLAY variable with a command like export DISPLAY=":0.0" For the VSRemoteDebugger, you can set that in the "Visual Studio Debugger Path".

image

JinShil avatar Sep 15 '22 00:09 JinShil