emacs-lsp / dap-mode

Emacs :heart: Debug Adapter Protocol
https://emacs-lsp.github.io/dap-mode
GNU General Public License v3.0
1.31k stars 182 forks source link

Is there a way to show the values of private variables in dap-mode? #699

Open yanpeng opened 1 year ago

yanpeng commented 1 year ago

Say, I passed a vector to a function, is there a way to show the value of this vector in dap-mode?

in the following image, the vector is arr, how can I show its value (now {8, 7, 6, 5, 4, 3, 2, 1}) like in vscode or visual studio. ksnip-20221221-213246.png

os: arch linux emacs version: 28.2 lsp-mode+ccls+dap-mode

yyoncho commented 1 year ago

Are you using the same debug adater in both vscode and emacs? I think that dap-mode is missing some value formatting but that should be fixable.

yanpeng commented 1 year ago

I haven't used vscode for c++ for a long time. I try to use emacs dap-mode but quite new. In some cases, it doesn't work well. case 1 is the formatting problem, case 2 is when i hover the mouse onto some variable (like that arr), the flybox always show "loading" but never finished loaded the value of that variable.