1 |
R0b0t1 wrote: |
2 |
> On Mon, Sep 17, 2018 at 12:36 PM, R0b0t1 <r030t1@×××××.com> wrote: |
3 |
>> On Mon, Sep 17, 2018 at 11:53 AM, Raffaele Belardi |
4 |
>> <raffaele.belardi@××.com> wrote: |
5 |
>>> (Moved from [pycharm-community vs pycharm-professional] thread) |
6 |
>>> |
7 |
>>>> Usually what I see is either sftp or rsync (over ssh) to the remote |
8 |
>>>> computer, then ssh to run the updated files. Alternatively you can ssh |
9 |
>>>> to the remote host and run vim within that session. |
10 |
>>>> |
11 |
>>> |
12 |
>>> I suppose vim on Host + ssh for transfer/run would be fine for me. |
13 |
>>> |
14 |
>>> For debugging I saw some support for python is available in gdb but I'm not sure of the |
15 |
>>> environment, would I run gdb on the host or on the target (via gdbserver)? |
16 |
>>> Also, is gdb a viable solution given the interpreted nature of python or I'd better start |
17 |
>>> off with some GUI/IDE? |
18 |
>> |
19 |
>> This is where it gets a bit weird... It seems there are multiple |
20 |
>> custom remote debug implementations. |
21 |
>> |
22 |
>> From some discussion on what PyCharm does (how it was broken by a |
23 |
>> company firewall) it looks like it starts an ssh connection to the |
24 |
>> target machine and runs pdb. PyDev may do something similar but it |
25 |
>> looks like it replaces pdb with its own module. |
26 |
>> |
27 |
>> Microsoft uses https://github.com/Microsoft/ptvsd. Visual Studio Code |
28 |
>> is actually quite good and should run on Gentoo - it is open source, |
29 |
>> as is their remote python debugger. I had forgotten about it but if |
30 |
>> you want a GUI do strongly consider it. |
31 |
> |
32 |
> Also this, sorry - https://github.com/quantopian/qdb. |
33 |
|
34 |
I had a quick look at the native python debugger pdb, I suppose that it should be fine |
35 |
till I'll be good enough with coding to crash the interpreter :-). I'll edit on the host |
36 |
('USE=python emerge vim') and share mounts via NFS. Thanks for the qdb hint, looks promising. |
37 |
VSCode license has some privacy statements that I don't like. |
38 |
|
39 |
thanks, |
40 |
|
41 |
raffaele |