Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code, how to display stack trace

How to display stack trace in VS Code?

From display stack trace in VS Code, it says,

When you issue the k, kb, kp, kP, or kv command, a stack trace is displayed in a tabular format. If line loading is enabled, source modules and line numbers are also displayed.

However, I am just not able to make it working. This is what I get when trying with the k, kb, kp, kP, or kv commands:

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 '~'

So, how to display stack trace?

like image 994
xpt Avatar asked Aug 01 '26 13:08

xpt


1 Answers

The stacktrace tab is not shown in your case.

To show the panel:

  menu->>View->>Run

The CALL STACK will be shown on the left side panel by default.

like image 58
B.Z. Avatar answered Aug 03 '26 07:08

B.Z.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!