This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-24
Channels
- # babashka (2)
- # beginners (10)
- # calva (30)
- # cljs-dev (3)
- # clojure (40)
- # clojure-europe (8)
- # clojure-france (1)
- # clojure-portugal (1)
- # conjure (4)
- # cursive (12)
- # datalevin (2)
- # introduce-yourself (5)
- # lsp (16)
- # off-topic (33)
- # re-frame (3)
- # rewrite-clj (31)
- # ring (3)
- # shadow-cljs (6)
- # specter (4)
- # tools-deps (8)
- # vim (17)
How can I debug Calva itself in VSCode? I can't seem to find any instructions about that
Have you found this page? https://github.com/BetterThanTomorrow/calva/wiki/How-to-Hack-on-Calva
What isn't explicitly mentioned there is that you then need to start the debugger/profiler on the vscode instance against the calva code base, not the vscode instance that launches with the F5
And that I guess the chrome/electron developer tools via the help menu isn't the place to go, but the vscode's own debugger tools
Please update the page with those insights. Though I find the dev tools plenty useful, so instead of advicing not to use them, we should focus on what to use the vs code debugger for, I think.
Oh, I thought the chrome devtools are not targetting the right code. For example when I profiled the stuck calva that way, I just saw idle
I think I simply don't understand vs code, and especially developing vs code extensions under vs code to make very good contributions. Would probably write stuff that just isn't completely, if even half, right
I've only used vscode for developing clj(s), and thus I never use the usual tools. Just everything in the repl…
I’ve updated https://github.com/BetterThanTomorrow/calva/wiki/How-to-Hack-on-Calva with a section about debugging now.
You’re still very welcome to add something about profiling, @U8ZQ1J1RR.
Well, if I knew that the profile had anything to do with it… Perhaps better to see where the bug is, and if the profile was correct? There was that other extension there, for example, which is unrelated to calva getting stuck
I really do think there's a high chance that the profile I got was completely unrelated, even if calva was using 100% of a core at the moment
I have stared at some profiler reports that the dev tools link to, but they never tell me anything. I think it is because I don’t know how to read them. But I have also noticed that thing with what seems like unrelated functions getting penalty… Strange.
I added a tips section now, with just one tips, about copying the jack-in command line and using that together with connect, instead of re-jack-in. https://github.com/BetterThanTomorrow/calva/wiki/How-to-Hack-on-Calva#tips
I’ve updated https://github.com/BetterThanTomorrow/calva/wiki/How-to-Hack-on-Calva with a section about debugging now.
How does Rich Comments surfing ClojureDocs Examples sound to you? Very WIP, but it’s shaping up well, me thinks. https://github.com/BetterThanTomorrow/calva/pull/1363
Looks cool, but personally, as a Calva user, I'd prefer to see on a separate window I think, where I can check the examples and etc, even eval some of them and then close the window, but it's just a IMO :)
Agree with new window. I like to do exploratory stuff in a separate file. But maybe my workflow is dumb. I generally use a scratch file.
If you read the PR description you’ll see that there are two commands added. One prints it to the REPL window and one to a rich comment. I know I will prefer the latter. Printing to a separate window might be better than the REPL window though. We’ve been discussing that