Fork me on GitHub
#cider
<
2019-04-10
>
zlrth03: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

oyakushev09: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

oyakushev09: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.

oyakushev09: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.

yuhan10: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

zlrth11: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

Robert Nikander15: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?