visual studio linux调试失败

将一个简单的程序编写好,在调试时总是断开连接
shellexec 1.0
鐗堟潈鎵€鏈?C) Microsoft Corporation銆備繚鐣欐墍鏈夋潈鍒┿€?
Welcome to Ubuntu 14.04.6 LTS (GNU/Linux 4.4.0-148-generic x86_64)
 * Documentation:  https://help.ubuntu.com/
  System information as of Fri Oct 14 15:27:12 CST 2022
  System load:  0.13              Processes:           111
  Usage of /:   7.9% of 35.58GB   Users logged in:     1
  Memory usage: 4%                IP address for eth0: 192.168.1.20
  Swap usage:   0%
  Graph this data and manage this system at:
    https://landscape.canonical.com/
New release '16.04.7 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
Your Hardware Enablement Stack (HWE) is supported until April 2019.
Last login: Fri Oct 14 15:27:10 2022 from 223.104.21.231
root@2yvm0iu3vnchgd0j:~# gdb --tty /dev/pts/1 --interpreter=mi; echo fab7778d-5eaf-46cb-943a-0a73f185bbe2
=thread-group-added,id="i1"
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.3) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later //gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
//www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
//www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
=cmd-param-changed,param="pagination",value="off"
(gdb) 1011-break-insert -f main
Warning: Exceptions are not supported in this scenario.
Loaded '/lib64/ld-linux-x86-64.so.2'. Symbols loaded.
Loaded '/lib/x86_64-linux-gnu/libc.so.6'. Symbols loaded.
线程 'Connexion.out' (0xa82) 已退出,返回值为 0 (0x0)。
程序“”已退出,返回值为 0 (0x0)。

开启调试之后没有输出我的字符串就断开连接了,然后就没有反应了,不知道该怎么解决,求解答

img

解决了吗,我的也出现这种问题