How to remote debug on Windows application that is compiled on linux - eclipse

I'm using Eclipse CDT Indigo. I read few advices how to use cross-debugging (Eclipse is on Windows, while compilation and debugging should be done on remote Linux machine). So far I was able to compile remotely on Linux, but I still can't figure out how to actually debug on remote machine. Is it possible at all (without Eclipse maybe)?
Btw Linux is a 64 bit CentOS and as far as I could find mingw64 is the only cross compiler available for it on windows. But from my experience it is sometime a bit too quirky. Is there a way to cross debug without a need for a cross compiler?

You need a gdbserver compiled for target machine, and a gdb compiled for host machine runing the target executable. If you have these two, then you can use wingdb add-on on visual studio to connect to gdb and gdbserver to remote debug from your windows machine. I found the following links helpful:
http://www.linux.com/archive/feature/12173
http://www.wingdb.com/docs/Pages/wg_dev_elinux.htm

Related

How to debug an ARM process which is running inside QEMU (with a gdb-server) under linux (remotely) but using the windows host?

I would like to attach to a remote gdb-server which is running under linux. Actually it is an ARM process which is running in a QEMU under a linux host.
And I use Visual studio code for the debugging under windows.
Is it generally possible to do so?
I have setup the visual studio code under another linux machine and try to connect to the remote gdb-server and it works well.
But the visual studio code under windows doesn't work.
I think conceptually it should be possible to debug this process. Because it is an ARM process but it is just running under QEMU under linux and if I have the corresponding toolchain in window, then it should be no different, right?
Then the question might be which tool-chain is needed to be installed under windows (under linux I installed aarch64-linux-gnu)?
In the visual studio code, I need to specify the gdb tool.
I found the toolchain here:
https://releases.linaro.org/components/toolchain/binaries/
And if I use the similar toolchain but for windows host, then it works well and I can attach to the process with no problem from the windows host.

0xc000007B application was unable to start

I am trying to run EasyPHP on Windows 10 (64 bit) system. Initially the error was regarding msvcr110.dll missing, which I resolved somehow. Now its showing the error of 0xc00007b unable to start program correctly. I have tried to run the compatibility troubleshoot as well as run as administrator option. Its just not working. Any other effective solutions ?
This usually happens when you have mix of x86 and x64 libraries installed. You should probably uninstall all x86 versions of Microsoft Visual C++ Redistributables and install their x64 bit counterparts (just google them and make sure you download 64 bit version of that library).

How do I run eclipse remotely using Cygwin?

I'm running on Windows 7 and I want to be able to access the remote linux server at my school to run eclipse and do my programming assignments.
I installed cygwin, and ssh into the server, but whenever I run the "eclipse" command, it says "Eclipse: Cannot open display".
Is there any additional software I need to do, or commands I need to run in order to display the gui from my windows 7 computer?
aside from just running eclipse on my own computer, I want to do it remotely.
thank you
You need to:
Run an X server on your Windows machine; there's an xorg-server package in cygwin, use that (or the independent Xming).
Configure your ssh client to forward X11 traffic to the X server on your windows machine.
Here's a more detailed tutorial on doing this.

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.

Visual studio + remote gdb debugging

What is best way to do remote live gdb debugging and use Visual studio as the front end.
In my case: I have a C++ application (compiled for debugging) running on a Linux server
Can I use Visual studio on my windows machine as a front end to do
live debugging on the C++ application. Is this even possible for a
large scale application (OR)
If above is not possible, can I use eclipse on my windows or on a different linux box to do the same remote live debugging
Any other better IDE options ?
Thanks.
You can easily do it with VisualGDB:
Build your app on the Linux machine and ensure that you can run it.
Install VisualGDB on your Windows machine with Visual Studio.
Run the VisualGDB build server on the Linux machine.
In Visual Studio, create new project, select C++->VisualGDB
In the wizard select Linux Application -> Import Existing -> Import from Remote machine
Select the directory where you have built the Linux app. If it's not based on GNU Make, also specify the build command line.
Specify whether you want to synchronize IntelliSense directories with Visual Studio.
On the last wizard page specify the executable name of your project so that VisualGDB knows what to debug.
When you press "finish", the Wizard will create a Visual Studio wrapper project around your Linux project so that you can edit the files, built the project and debug it from Visual Studio.
There's a more detailed tutorial here: http://visualgdb.com/tutorials/linux/import/
You can try WinGDB.
It is an extension for Visual Studio allowing to develop and debug programs with GDB. Here is how to setup Remote Linux development using WinGDB.
I don't think it's possible using Visual Studio.
It should be possible using gdbserver/gdb combo, but on Windows machine you will need special build of gdb that targets linux. I never tried this, but it should be possible to build.
If you can get this working, then you can use Eclipse or any IDE that supports GNU tools.
Just some recommendation:
You can install a free X server on your Windows machine, such as Xming or Xorg in Cygwin. Then you can do Linux native debugging with eclipse. Just display the eclipse GUI to your X server on Windows. You can interactive with the GUI on your Windows machine.
Now possible with VS2015 + GDB extension, reas MS blog post here: http://blogs.msdn.com/b/vcblog/archive/2015/11/18/announcing-the-vs-gdb-debugger-extension.aspx