Twitter | Pretraživanje | |
Jonathan Blow
Do I dare ask what is the most reasonable way to debug a C++ program on Linux in 2020?
Reply Retweet Označi sa "sviđa mi se" More
George Nakos 1. velj
Odgovor korisniku/ci @Jonathan_Blow
very reluctantly mentioning codeclap (), assuming it runs on your config
Reply Retweet Označi sa "sviđa mi se"
Jonathan Blow 1. velj
Odgovor korisniku/ci @_ggn_
Doesn't seem usable ... it terminates the program during dynamic loading before it even gets to main, and this is after I figured out it just doesn't understand ~ in filenames and I had to type paths out from root.
Reply Retweet Označi sa "sviđa mi se"
Arthur Brainville 1. velj
Odgovor korisniku/ci @Jonathan_Blow
gdb itself is a great debugger. For a less "spartan" setup, look at QtCreator. It looks and feels like Visual Studio in term of debugging experience. I have heard good things about using VsCode with the right extensions. I don't really like the UX of it and the json config. YMMV
Reply Retweet Označi sa "sviđa mi se"
Jonathan Blow 1. velj
Odgovor korisniku/ci @Ybalrid
gdb is basically the same program I was using to debug in 1989. It is not a great debugger.
Reply Retweet Označi sa "sviđa mi se"
ninepoints 2. velj
Odgovor korisniku/ci @Jonathan_Blow
I spend dozens of hours debugging C++ on linux every week. The best visual debugger is VSCode (which integrates with either GDB or LLDB). Super easy to set up, at least as good as the VS debugger. Personally, I'm partial to gdb or lldb's TUI mode (GUI in terminal)
Reply Retweet Označi sa "sviđa mi se"
Jonathan Blow 2. velj
Odgovor korisniku/ci @m_ninepoints
So far VSCode's UI seems strictly more annoying than Visual Studio's, but I will try some more and see what happens.
Reply Retweet Označi sa "sviđa mi se"
Matija Dizdar 1. velj
Odgovor korisniku/ci @Jonathan_Blow
printf
Reply Retweet Označi sa "sviđa mi se"
Joshua Noble 2. velj
Odgovor korisniku/ci @MD_notadoctor @Jonathan_Blow
This is os-agnostic
Reply Retweet Označi sa "sviđa mi se"
Fabien Sanglard 1. velj
Odgovor korisniku/ci @Jonathan_Blow
CLion has a great interface to gdb. Everything is done in GUI. I use it on all platform I develop on (win, macos, Linux). I highly recommend it.
Reply Retweet Označi sa "sviđa mi se"