编辑:以下OP不适用于VS Code中的显示堆栈跟踪。回答问题后将其清理。
- - - OP - - -
我想我已经找到了display stack trace in VS Code的提示,
发出k,kb,kp,kP或kv命令时,堆栈跟踪以表格格式显示。如果启用了行加载,则还会显示源模块和行号。
但是,我只是无法使其工作。这就是我得到的:
k
Unable to eval expression: "could not find symbol value for k"
Failed to eval expression: {
"symbol": "k",
"scope": {
"goroutineID": 1,
"frame": 0
}
}
Eval error: could not find symbol value for k
kb
Unable to eval expression: "could not find symbol value for kb"
Failed to eval expression: {
"symbol": "kb",
"scope": {
"goroutineID": 1,
"frame": 0
}
}
Eval error: could not find symbol value for kb
~. k c
Unable to eval expression: "1:1: illegal character U+007E '~'"
Failed to eval expression: {
"symbol": "~. k c",
"scope": {
"goroutineID": 1,
"frame": 0
}
}
Eval error: 1:1: illegal character U+007E '~'
我缺少什么?
答案 0 :(得分:3)
您的案例中未显示堆栈跟踪选项卡。
显示面板:
menu->>View->>Run
CALL STACK 将默认显示在左侧面板上。