Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio code vscode远程调试控制台始终打印;无法对指定堆栈帧上的表达式求值;_Visual Studio Code_Gdb_Vscode Debugger - Fatal编程技术网

Visual studio code vscode远程调试控制台始终打印;无法对指定堆栈帧上的表达式求值;

Visual studio code vscode远程调试控制台始终打印;无法对指定堆栈帧上的表达式求值;,visual-studio-code,gdb,vscode-debugger,Visual Studio Code,Gdb,Vscode Debugger,在vscode中调试时,底部似乎有一个gdb控制台。目前,我正在远程连接到gdbserver,并且能够在断点上暂停。我希望能够在控制台中键入gdb命令。问题是无论我键入什么,例如info sharedlibrary,它都会打印以下内容: info sharedlibrary Cannot evaluate expression on the specified stack frame. 这不是与gdb的直接接口。要获取要执行的命令,需要键入-exec。错误消息令人痛苦地困惑 -exec inf

在vscode中调试时,底部似乎有一个gdb控制台。目前,我正在远程连接到
gdbserver
,并且能够在断点上暂停。我希望能够在控制台中键入gdb命令。问题是无论我键入什么,例如
info sharedlibrary
,它都会打印以下内容:

info sharedlibrary
Cannot evaluate expression on the specified stack frame.

这不是与gdb的直接接口。要获取要执行的命令,需要键入
-exec
。错误消息令人痛苦地困惑

-exec info sharedlibrary
...
事实上,在同一个控制台中可以找到以下内容,当有一堆其他输出时,很容易遗漏:

Execute debugger commands using "-exec <command>", for example "-exec info registers" will list registers in use (when GDB is the debugger)
使用“-exec”执行调试器命令,例如“-exec info registers”将列出正在使用的寄存器(当GDB是调试器时)