<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Detlev,</p>
<p>Sorry it took a while before I picked up this thread, but lack of
time didn't allow me to take next steps.</p>
<p>So far, I've done the following steps:</p>
<ol>
<li>I installed newest version of Eric6 (currently installed
version: 19.01) on my Windows10 PC</li>
<li>I copied the directory "DebugClients" (located in
./Lib/side-packages/eric6) from my Windows10 PC onto my RPi in
the directory /home/pi/eric6. So, I have
/home/pi/eric6/DebugClients on my Raspberry Pi</li>
<li>I created a Python test directory on the Raspberry Pi like so:
/home/pi/eric6/remotetests and I've put a very simple Python
script in there: hello.py.<br>
This is the content:<br>
<tt> def main():</tt><br>
<tt> print('Hello World')</tt><br>
<tt><br>
</tt><tt> if __name__ == '__main__':</tt><br>
<tt> main();</tt></li>
<li>I've created an Eric6 project on my WindowsPC in the directory
E:\AppData\Programming\Python\Eric6\RemoteRpiTest\ and added the
same hello.py to the project.<br>
I find it a strange thing I have to do this, I was expecting to
use the Python file on the Raspberry Pi to start debugging. So,
what I tried was to add source files to the project coming from
my remote Raspberry Pi. But that gave an error (log attached).
I've also sent the error log to the e-mail address
'<a class="moz-txt-link-abbreviated" href="mailto:eric-bugs@eric-ide.python-projects.org">eric-bugs@eric-ide.python-projects.org</a>'.<br>
Since that trick didn't work, I kept my local Python file.<br>
</li>
<li>In the Eric6 project, I've set the Debugger Properties window
like in the attached file "Eric6RemoteDebuggerSettings.png":</li>
<ol>
<li>I've referred to the DebugClients directory (and file) for
the Debug Client section</li>
<li>My remote host is accessible from my Windows10 PC (command
prompt) without having to pass my password using the command
ssh '<a class="moz-txt-link-abbreviated" href="mailto:pi@192.168.123.57">pi@192.168.123.57</a>'. So, should be fine...</li>
<li>I've done path translations as per the image attached.</li>
</ol>
</ol>
<p>However, when running the debugger, I don't see any feedback on
the IDE and also can't debug...</p>
<p>Then I tried the following:</p>
<ol>
<li>Opening a DOS command box on my Windows10 PC</li>
<li>Run the command "ssh <a class="moz-txt-link-abbreviated" href="mailto:pi@192.168.123.57">pi@192.168.123.57</a> python3
/home/pi/eric6/remotetest/hello.py"</li>
<li>That worked perfectly: I could run the Python script on my
Raspberry Pi and get the results back on my DOS prompt. So,
clearly the remote part is accessible using SSH and without
providing a password.</li>
<li>I then added that command into the field "Remote Execution" of
the Debugger Properties dialogue box in Eric6 and tried to debug
the project again.<br>
Result: error message saying "Debugger backend could not be
started" (see attached image
"DebuggerBackendCouldNotBeStarted.png").</li>
</ol>
<p>I'm a bit "out of inspiration" now. Is there anything wrong in
the setup(s) above? What else am I missing?</p>
<p>Best,<br>
--Geert<br>
</p>
<p><br>
</p>
<div class="moz-signature">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<pre class="moz-signature" cols="72">--
Best rgds,
Geert
<b></b></pre>
</div>
<div class="moz-cite-prefix">On 13/01/2019 15:49, Detlev Offenbach
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:2225667.kKDglMWyTY@neptun.solsys.priv">
<pre class="moz-quote-pre" wrap="">Hello Geert,
I haven't done this for a very long time but it should be possible. As a first
step you should install the debugger client on the RPi. Once that is done you
can configure everything on the debugger configuration pages. I would like to
get a HOWTO document for the eric web site about the steps you did to get this
working. The eric6 README file gives some hints on this.
Detlev
Am Sonntag, 13. Januar 2019, 15:34:10 CET schrieb Geert Vancompernolle:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Hi,
Has anyone ever tried to remotely debug Python code running on a
headless Raspberry Pi from a Windows (10) PC running the Eric6 IDE? Is
that possible and if so, what is to be done?
Such mechanism is available for Java code running on the RPi while using
Netbeans on the PC to step through the code remotely running on the RPi.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
</pre>
</blockquote>
</body>
</html>