emacs-lsp / dap-mode

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

[Q] Question about dap-ui-locals and variable expansion #761

Open DJManas opened 9 months ago

DJManas commented 9 months ago

Hi,

I still have problems with finding correct documentation or going through lisp code. I am using dap mode in Spacemacs, I had managed to made it work, but when I debug python project I want variables to be expanded.

I mean, default is this image

When click on locals I can make it expand like this image

But when stepping through code it collapses again. Is there some variable or hook, that can keep it open?

I had found: dap-ui-locals-expand-depth set it to t dap-ui-expressions-expand-depth set it to t

Both using M-x set-variable, but it doesn't seem to be working.

I had found older threads, where this was discussed e.g commit fecd68a.

Thanks, Regards, Petr Sourek

sapelkinAV commented 9 months ago

Have the same issue. I set up variables at first via customize-group dap-ui, didn't worked. Tried to override it manually via setq, same result: during debug session variables always collapsed, and even if you expand them on next step they are collaprsing again. Help would be appreciated, thanks in advance!

image image
DJManas commented 9 months ago

I had tried to debug Lisp, but I was lost. Maybe can @yyoncho point me where to put breakpoint?

EDIT: I put it to function defun dap-ui-locals ()

in dap-ui-locals.el file. But was lost when I skipped into other functions inside.

yyoncho commented 9 months ago

@DJManas I would start with lsp-treemacs-render in isolation to check if it works correctly.

Edit: there was treemacs rewrite which broke a lot of the functionality and most likely this is caused by that.