Gentoo Archives: gentoo-user

From: R0b0t1 <r030t1@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] remote debugging python on embedded platform
Date: Mon, 17 Sep 2018 11:39:11
Message-Id: CAAD4mYiLVkzzYfbeP2vg+nMGhcGYOtNsUHK4Y_b8MKLqdbRCKw@mail.gmail.com
In Reply to: Re: [gentoo-user] remote debugging python on embedded platform by R0b0t1
1 On Mon, Sep 17, 2018 at 12:36 PM, R0b0t1 <r030t1@×××××.com> wrote:
2 > On Mon, Sep 17, 2018 at 11:53 AM, Raffaele Belardi
3 > <raffaele.belardi@××.com> wrote:
4 >> (Moved from [pycharm-community vs pycharm-professional] thread)
5 >>
6 >> R0b0t1 wrote:
7 >>> On Mon, Sep 17, 2018 at 10:54 AM, Raffaele Belardi
8 >>>> I'd use Python to develop programs for fun on an ARM-linux embedded board, with the host
9 >>>> PC running Gentoo. I suppose that for debugging on the target I'd need this feature:
10 >>>> "Remote run/debug" which is available only in the (pycharm)Pro edition, right?
11 >>>>
12 >>>
13 >>> Usually what I see is either sftp or rsync (over ssh) to the remote
14 >>> computer, then ssh to run the updated files. Alternatively you can ssh
15 >>> to the remote host and run vim within that session.
16 >>>
17 >>
18 >> I suppose vim on Host + ssh for transfer/run would be fine for me.
19 >>
20 >> For debugging I saw some support for python is available in gdb but I'm not sure of the
21 >> environment, would I run gdb on the host or on the target (via gdbserver)?
22 >> Also, is gdb a viable solution given the interpreted nature of python or I'd better start
23 >> off with some GUI/IDE?
24 >>
25 >> I normally use gdb/gdbserver for embedded C debugging so I'm fine with the gdb command
26 >> line interface.
27 >>
28 >
29 > This is where it gets a bit weird... It seems there are multiple
30 > custom remote debug implementations.
31 >
32 > From some discussion on what PyCharm does (how it was broken by a
33 > company firewall) it looks like it starts an ssh connection to the
34 > target machine and runs pdb. PyDev may do something similar but it
35 > looks like it replaces pdb with its own module.
36 >
37 > Microsoft uses https://github.com/Microsoft/ptvsd. Visual Studio Code
38 > is actually quite good and should run on Gentoo - it is open source,
39 > as is their remote python debugger. I had forgotten about it but if
40 > you want a GUI do strongly consider it.
41
42 Also this, sorry - https://github.com/quantopian/qdb.

Replies

Subject Author
Re: [gentoo-user] remote debugging python on embedded platform Raffaele Belardi <raffaele.belardi@××.com>