Error when Visual Studio Remote Debugging with GDB

▼魔方 西西 提交于 2019-12-24 22:39:41

问题


I have a sample c++ application which builds and runs fine in a Red Hat installation.

I wanted to have the source code of this application in my windows machine so I can create a Visual Studio project and use Visual Studio 2017's new features which makes it possible to build and debug programs on a Linux server.

I successfully managed the following

  • Create a 'make file' project using Visual Studio CE 2017
  • Connect to the remote server and build by invoking make command at the server

My remote debugger settings are as follows

Remote Build Settings are as follows

General Settings are as follows

However, when I try to debug the program via Visual Studio (using gdb in the server) following error occurs

Since this doesn't reveal much, I enabled verbose mode (in GDB) and following is the verbose output. Apparently, GDB crashes after loading symbols for one of the source files.

Furthermore, I can manually GDB the binary in the Linux Server without any problems

来源:https://stackoverflow.com/questions/49901105/error-when-visual-studio-remote-debugging-with-gdb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!