Fork me on GitHub
#cider
<
2019-04-10
>
mfm03:04:21

how do i look into speeding up cider-debugger? stepping through operations that have to do with data structures with thousands of items is taking seconds and seconds

alexyakushev09:04:20

I'm not sure, but that slowness could be from the debugger trying to print the structure, not from the evaluation being slower

alexyakushev09:04:47

You could try to work around that by manually placing #dbg tags that don't target those big structures instead of compiling the whole function in debug mode.

alexyakushev09:04:29

Or you can go past them with h, however that is not always reliable from my experience.

bozhidar10:04:18

You can always limit the print length in the configuration and that will probably speed up things. Using the inspector from the debugger might be another option that can help.

qythium10:04:50

Which configuration option would that be? I opened an issue about a similar thing a few days ago, the debugger trying to fully realize intermediate sequences

mfm11:04:01

thanks alexyakushev--i forgot about #dbg! that will help. bozhidar: i wonder if i'm experiencing something related to what yuhan is. just now i set my print-length to 1, and debugging is just as slow. yuhan: thanks. i thumbs-upped your issue; i can reproduce it. https://github.com/clojure-emacs/cider/issues/2621

rob70415:04:42

M-x fill-paragraph in a function docstring seems to ignore the fill-column variable. Anyone know how to choose the width of your comment text?