4 ms·
No, gdb is not what people really use. There is probably a correlation between using it and having a grey beard. Here's an example of modern tools: https://tw
by andersa 3y ago
No, gdb is not what people really use. There is probably a correlation between using it and having a grey beard.
Here's an example of modern tools:
https://twitter.com/EskilSteenberg/status/1695337268691571025 https://twitter.com/EskilSteenberg/status/169533726869157102...
https://youtu.be/CxKujAuz2Vw https://youtu.be/CxKujAuz2Vw
- bear8642 3y agoYet to watch video, but does visual studio support macros in immediate or watch windows? That so far has been my frustration when not remote debugging linux vm, where it becomes a gdb front-end
- olig15 3y agoYes, you can do basic stuff directly in VS watch did windows, or for more advanced stuff you can use NatVis - https://learn.microsoft.com/en-us/visualstudio/debugger/create-custom-views-of-native-objects?view=vs-2022 https://learn.microsoft.com/en-us/visualstudio/debugger/crea...
- wudangmonk 3y agoYou have to use gdb unless you are using windows unless there is another debugger for linux that I'm not aware of. Watched the video and you pretty much have everything mentioned in it with just an lsp, compiler flags and a command that runs your program with a debugger. The only example that wasn't caught with just that was the p[3] example but that was caught by valgrind which is also something I have a command setup for. Really the only thing I was actually jealous of was at the very end of the video and it wasn't the hot reloading stuff, that's easy if you split your programs from the platform its running on. The ONLY thing was that the vs debugger lets you explore variables with a visual interface instead of having to write commands to do it. I've used it on windows and even though its usually busted and variables do not always update they sometimes do. At the very least just viewing the hiearchy of the structure is useful so that you can easily add the value you want to the watch window which usually does work.
- deredede 3y ago> You have to use gdb unless you are using windows unless there is another debugger for linux that I'm not aware of. lldb does work on Linux.