如何从Windows调试Linux上运行的远程程序
我习惯了 Visual Studio 调试器(它真的很好),我必须从我的 Windows 机器上调试在 Linux(C++ 中)上运行的程序。任何人都可以建议如何从Windows调试在Linux上运行的远程程序
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
ddd
- 它将在您的 Windows 机器上显示ddd
on the linux machine - it'll display on your windows machine对于基于控制台的程序,您需要查看 gbd。它是一个命令行实用程序,但只要掌握一些专业知识,它就可以像 Visual Studio 一样追踪问题。您可以通过远程 SSH 会话启动程序并以这种方式进行调试。这甚至可能适用于您通过 VNC 连接查看的基于 GUI 的应用程序。
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.