How do I remote debug over Serial Port or USB with Eclipse? - eclipse

I'm working on a device that has an unstable wireless connection and therefore requires a serial cable to debug programs that run on it while the Firmware team works on fixing the wireless connections. This happens often as new devices tend to be unstable at first. The problem is I can't seem to find out how to remote debug in Eclipse CDT when using a serial port. I've been doing some searching online and have found lots of info about remote debugging via SSH, FTP and Telnet. Although, I can't find anything about debugging through the serial port. I was able to find info on and use a serial terminal in Eclipse but as far as I can tell this doesn't help me debug a program remotely with the serial connection. I also know that it's possible due to this Eclipse bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=257171
Unfortunately that doesn't tell me how to use this new support :(
I also know GDB allows debugging via serial cable, so surely there is a way to do it with the Eclipse debugger. I was also wondering if there is a way to get the "Remote System Explorer", an Eclipse plugin, to use a serial port as well? As far as I can tell it doesn't seem to support serial connections. Is there another plugin like it that does support serial connections? Any and all help is greatly appreciated.

From the comments by the patch it looks like official support is in Eclipse 3.6 (Helios) M7
The supported CDT approach seems to be to use the GDB serial protocol.
http://www.embecosm.com/appnotes/ean4/embecosm-howto-rsp-server-ean4-issue-2.html

Related

Can I connect ESP32 via VSCode by connecting via REPL via USB just like Atom does?

I'm trying to use VSCode to debug MicroPython code running on the ESP32 microcomputer. VSCode has a "ESP32 debug" plugin which I hope to use to connect my Mac running VSCode via the USB to the ESP32.
This plugin appears not to allow me to specify the tty name to VSCode to establish a REPL like connection to my ESP32 just like Atom does.
Is this plugin the one I should use, or am I confused as to the purpose of the plugin?
I expected the plugin to prompt me for the USB tty name, in my case, this would be /dev/tty.SLAB.USBtoUART which is already installed, and working on Atom.
I would appreciate any additional info such as additional forums, or additional plugins I might need.
Thanx
You can use the Pymakr plugin to connect to the micropython repl and upload/download files, either via serial connection or telnet. It works fine with the esp32. Just configure the port and it should connect.

eclipse neon remote debug

I just installed the latest version of eclipse neon. I previously used eclipse mars. But due to other issues that should be updated in eclipse Neon I changed to this version.
I develop a program for a ARM Linux system on a Windows computer, so using a cross-gcc and doing remote debug using gdb/gdbserver from eclipse. I first made a connection using the remote systems perspective using ftp for file transfer and ssh for the shell. This worked fine and I was happy with this.
But in Neon it seems to be changed because the connection that I made in the Remote Systems explorer can't be selected anymore when you use C/C++ Remote Application Debug. When you look at the connection listbox I only see local connection and not the remote systems anymore. When I create a new connection from the debug configurations dialog I can only choose serial/telnet/ssh but when I choose ssh it doesn't work. I can make the connection and open a command shell, so ssh works. But when it wants to transfer the file to my target it is using sftp appearently (looking at the error log) but I don't have this on my target.
When I transfer the file manually to my target (using the remote systems perspective) the debugging works fine but of course I want to transfer the file automatically when I start a debug.
My question is if indeed this connection management is changed that you can't choose anymore the systems that you defined in the remote systems explorer?
Or do you need install a specific plugin?
The current configuration possibilities are very limited and also the debugging of the issues is limited.
Other solution is that I have scp installed on the target. Is there a way to change from sftp to scp?
Thanks.

How Do I debug in server side code?

I have download & install vscode on my ubuntu 14.04 lts box, and It's working fine. I have created one app in node.js, and want to debug it. When I put debug point in my app.js file, and hit f5 (run), and seems it's working. But How to debug server side and client side code? Do you have any video tutorial in detail, so new user can understand it.
Thanks
VSCode only supports node and mono (on linux and mac) debugging atm.
Client side debugging is not currently supported, you can vote for it here: https://visualstudio.uservoice.com/forums/293070-visual-studio-code?filter=hot&page=1
We might produce video tutorials for new users soon.
In the meantime you can look at the docs
https://code.visualstudio.com/Docs/debugging
The VSCode debugger does not support to debug clients (browsers) because browsers already have built-in debuggers (and other dev tools) that are much better integrated than VSCode can ever be.
So please use VSCode for debugging your node server and for debugging the client at the same time open the development tools of your browser.

Remote C development on a UNIX machine from a Windows machine using eclipse

I have terminal access to an AIX machine using ssh/telnet (No root access). I need to develop programs using C and compile it using the xlc compiler. Currently I can open remote files in eclipse(Juno) using RSE and edit files, but code-completion and error checking won't work. Can anyone please, help me to setup eclipse, so that code-completion would work and also, I would be able to compile the code from my Windows machine. Any help would be deeply appreciated.
You could try this, http://wiki.eclipse.org/PTP/rdt-setup or.. check out...
How to build a c++ project on a remote computer in Eclipse?
Somewhat similar. If you look at the 3rd answer.
Also you could try X11 Forwarding -
http://tartarus.org/~simon/putty-snapshots/htmldoc/Chapter3.html#using-x-forwarding
Instead of trying to setup Eclipse and CDT to do remote development, you may want to consider purchasing IBM Rational Developer for Power Systems Software (RDP), which is an Eclipse-based remote development environment that allows for C and C++ (and COBOL) application development on AIX from a Windows or Linux system. More information can be found here.

Regarding eclipse galileo

I'm using eclipse galileo for developing some web application. But I want to get the eclipse installed on the server(assume some other pc or server machine) and I want to access it as a client and work as I was working before. Please suggest me what type of server I should configure and which Operating System supports it.
A little bit weird to put the IDE on the server but you can use whatever OS you want, put the Eclipse there and connect to it using VNC or Remote Desktop.