<div dir="ltr"><div>I still am puzzling out how to make remote debugging work within kdevelop 4.7<br><br><br></div><div>Here is a script (bash/sh) you can use to fire off gdb server if you already running application on a remote machine.<br><br>apid=`ssh neptune ps -o pid,command | grep a.r.passthru | cut -d " " -f 2`<br>ssh neptune 'gdbserver --attach --debug --remote-debug <a href="http://192.168.1.45:2345">192.168.1.45:2345</a> '$apid<br><br><br></div><div>If you want to fire off the debugging session from scratch you can do this and your are low on disk space on the remote machine your could do this following:<br><div style="margin-left:40px"><i><b>cp </b><your application><b> </b>strip.<your application><b><br><br>strip --strip-debug </b>strip.<your application><b><br><br>scp </b>strip.<your application><b> <remote machine>:/</b><path to run remote><b>/</b><your application name><b><br><br>ssh <remote machine> '</b>gdbserver --attach --debug --remote-debug <a href="http://192.168.1.45:2345">192.168.1.45:2345</a> /<path to run remote>/<your application name></i>'<br></div><br></div><div>replacing your information between the < and ><br><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 4, 2015 at 6:50 PM, René J.V. <span dir="ltr"><<a href="mailto:rjvbertin@gmail.com" target="_blank">rjvbertin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wednesday February 04 2015 23:26:26 Nicolai Hähnle-Montoro wrote:<br>
<br>
> Maybe the OP's problem has to do with various differences between the<br>
> client and server X libraries?<br>
<br>
Who knows. In theory they're both of the XOrg.org flavour.<br>
<span class=""><br>
> I know for a fact that KDevelop works decently with NFS, and I expect<br>
> that it'll also work okay with sshfs.<br>
<br>
</span>Well that's going to make for speedy compilations...!<br>
<span class=""><br>
> > I'm more concerned about Qt applications being non-starter over remote<br>
> > X.<br>
><br>
> Luckily we'll all soon be using Wayland, so this will become a non-issue.[0]<br>
</span><span class="">> [0] Though obviously not in a way that makes people like us happy ;-)<br>
<br>
</span>Hah, I presume you're referring to the way Wayland is (not) going to be making its appearance on OS X or MS Windows?<br>
<br>
> *That* said, I just did a quick test of a (non-kf5) Qt5 application over<br>
> X forwarding, and it generally seemed to work (lost my color scheme, but<br>
> that's maybe not surprising since it's otherwise inheriting it from X<br>
<br>
Are you also getting a kind of grey/beige background in the UI? I even get that when I launch a Qt5 application with the xcb plugin on OS X, rendering to the local X11 server.<br>
<div class="HOEnZb"><div class="h5"><br>
R.<br>
_______________________________________________<br>
KDevelop mailing list<br>
<a href="mailto:KDevelop@kde.org">KDevelop@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kdevelop" target="_blank">https://mail.kde.org/mailman/listinfo/kdevelop</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><span style="font-family:'lucida grande',tahoma,verdana,arial,sans-serif;font-size:13px;line-height:17px;background-color:rgb(255,255,255)"><i><b><font color="#ff0000">"...Hope is what makes us strong. It is why we are here. It is what we fight with when all is lost..."</font></b></i></span></div>
</div>