4 ms·
Debuggers are much better in JetBrains or Visual Studio than using just an editor.
by ozim 5mo ago
Debuggers are much better in JetBrains or Visual Studio than using just an editor.
- kstrauser 5mo agoHad you honestly imagined that Emacs doesn't have excellent debugging tools?
- pjmlp 5mo agoNo it doesn't, unless it magically got them since XEmacs, with someone taking the effort to duplicate all features in ELisp. Running gdb as subprocess, with breakpoints, step, run, continue, is the basic stuff.
- aki237 5mo agoRecently been using emacs' inbuilt debugger. Honestly it is nuts, how good it is.
- pjmlp 5mo agoNow try to visually display all the threads being executed and the dependency graph who launched each thread. https://learn.microsoft.com/en-us/visualstudio/debugger/using-the-parallel-stacks-window?view=visualstudio https://learn.microsoft.com/en-us/visualstudio/debugger/usin... Followed by doing some code change and hot reloading it into the debugging session. https://learn.microsoft.com/en-us/visualstudio/debugger/edit-and-continue-visual-cpp?view=visualstudio https://learn.microsoft.com/en-us/visualstudio/debugger/edit... While using binaries compiled in release build by default, https://www.youtube.com/watch?v=YnbO140OXuI https://www.youtube.com/watch?v=YnbO140OXuI All of it in C++.
- cptmurphy 5mo agoCan it be done using standalone debuggers? I don't mind switching between a text editor and a debugger
- ozim 5mo agoI imagine that just way more work was poured into VS/Jetbrains debuggers and that they have better UX and better features. I don’t have to offer my soul to make it work just pay money ;)
- kstrauser 5mo ago> I imagine that just way more work was poured into VS/Jetbrains debuggers I'm fascinated at how vastly different our perspectives are. From my POV, I'd be shocked if VS/Jetbrains had a fraction of the work poured into them that Emacs or Vim have.
- delta_p_delta_x 5mo agoVS and JetBrains IDEs have very good sane defaults. They're usable out of the box. In VS I load a .sln file, or a project containing CMakeLists.txt, press F5, and I am debugging with a full-fledged data structure visualisation, CPU and heap profiling, and I can even add in time-travel debugging with a couple of clicks. I have to manually set all of this up in Vim or Emacs, and frankly the debugging experience in GDB or LLDB is worse than it really ought to be. People actually need to use good tools to understand how nice things can be.
- pjmlp 5mo agoTry to debug a CMake file, do hot code reloading for C++, or debug release binaries with Emacs/vim. Just three examples out of many others.
- lenkite 5mo agoI think you need to try the Jetbrains debugger first - anyone who has used it would never compare it with neovim or emacs.