Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
202 views
in Technique[技术] by (71.8m points)

c++ - Error when Visual Studio Remote Debugging with GDB

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 enter image description here

Remote Build Settings are as follows enter image description here

General Settings are as follows enter image description here

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

enter image description here

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.

enter image description here

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

enter image description here

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...