1

I am used to visual studio debugger(its really good) and I have to debug a program running on linux(in C++) from my windows machine. Can anyone suggest how to debug remote program running on linux from windows

1
  • You need a debugger that will run on win and on linux, not sure if that exists... Commented Apr 13, 2011 at 7:01

2 Answers 2

2
  • Install an X-Windows server on your windows machine, there are quite a few alternatives (e.g. cygwin/X).
  • SSH to the linux machine with X forwarding enabled, or setup your X server to accept connections from your linux machine and manually setup the DISPLAY on the linux machine.
  • Install and run e.g. ddd on the linux machine - it'll display on your windows machine
  • debug
Sign up to request clarification or add additional context in comments.

Comments

0

For console based programs, you're going to want to look into gbd. It's a command line utility, but with a bit of knowhow, it's every bit as capable as Visual Studio for tracking down a problem. You could start your program over a remote SSH session and debug it this way. This might even work for GUI based applications that you were viewing over a VNC connection.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.