在我的远程计算机(Ubuntu 16.04.4 LTS)上安装gdbserver之后,我通过在Visual Studio 2017中创建“跨平台控制台应用程序(linux)”项目来测试以下c代码:

#include <cstdio>

int main()
{
    printf("hello from testLinuxDebug!\n");
    return 0;
}

我将我的Ubuntu机器的连接信息(ip地址,id,密码)添加到连接管理器,并选择“gdbserver”作为调试模式 .

然后我开始调试并得到以下消息:

无法开始调试 . 命令“-interpreter-exec console”目标远程localhost63361“”的意外GDB输出 . 远程连接已关闭 .

Message after starting to debugging (Image captured from VS2017)

顺便说一下,我从Visual Studio 2017的调试菜单的Linux控制台窗口中收到以下消息:

进程/home/.../projects/testLinuxDebug/bin/x64/Debug/testLinuxDebug.out created; pid = 29277侦听端口4444从主机远程调试127.0.0.1 /build/gdb-9un5Xp/gdb-7.11.1/gdb/gdbserver/regcache.c:264:检测到问题> GDB服务器内部 . 未知的注册ymm0h请求

Message from Linux Console Window (Image captured from VS2017)

有人可以帮我解决这个问题吗?