dap-mode icon indicating copy to clipboard operation
dap-mode copied to clipboard

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

Open DJManas opened this issue 2 years ago • 4 comments

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

DJManas avatar Nov 02 '23 12:11 DJManas

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

sapelkinAV avatar Nov 24 '23 02:11 sapelkinAV

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.

DJManas avatar Nov 24 '23 13:11 DJManas

@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.

yyoncho avatar Nov 24 '23 13:11 yyoncho