Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Remote debugging Linux X11 application(How to debug an application (that uses X11) running on a remote device ?)
Remote debugging Linux X11 application [message #1721355] Tue, 26 January 2016 14:04
Eclipse UserFriend
Hi All,

I'm setting up a VirtualBox on a Win10 workstation. The guest OS is Debian Jessie. The guest gets 4098MB Ram and can use up to 4 cpu-cores. I'm setting this up with the idea to have a decent environment for armhf development (Raspberry Pi and Beaglebone Black).

Eclipse (Mars), armhf build-essential etc are installed, as is gdb-multiarch and Gtkmm-2.4.
I followed the setup as described in Derek Molloy's "Exploring Beaglebone"-book and various online tutorials/manuals.

Atm, my project compiles fine for armhf and is scp-ed to the target. :
#include "HelloWorld.h"
#include <gtkmm/main.h>

int main (int argc, char *argv[])
{
  Gtk::Main kit(argc, argv);

  HelloWorld helloworld;
  //Shows the window and returns when it is closed.
  Gtk::Main::run(helloworld);

  return 0;
}

I can run this simple program by
paul@debian64:~$ ssh -X pi@192.168.1.100

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Jan 26 19:30:54 2016 from 192.168.1.105
pi@raspberrypi:~ $ cd temp/
pi@raspberrypi:~/temp $ ./RpiGtkmm 
Hello World
Hello World
pi@raspberrypi:~/temp $ ^C
pi@raspberrypi:~/temp $ 


The graphic output is on the host Debian.

If I launch the program on the PRI the output is on the RPI 7" screen.

BUT : I intend to debug this program with eclipse running on the host. Starting a remote debugging session results in the programming breaking into a braekpoint at main. So far so good.
Once stepping over
Gtk::Main kit(argc, argv);

results in
(RpiGtkmm:2115): Gtk-WARNING **: cannot open display: 


I tried different "solutions" I found on the internet, but to no avail...

Any tips/how-to's/tutorials on how to debug a X11 application on a remote machine from within a local eclipse would be highly appreciated!

Thanks in advance,

Paul
Previous Topic:Helping the indexer
Next Topic:Building errors
Goto Forum:
  


Current Time: Sat Nov 08 21:08:55 EST 2025

Powered by FUDForum. Page generated in 0.02739 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top