You are viewing a single thread.
View all comments View context
55 points

imagine if it, like, told you this so you didn’t have to find out about it via a post on lemmy

permalink
report
parent
reply
25 points

imagine if it like, read that file and gave you a stack trace

permalink
report
parent
reply
14 points

gdb gives you waaaaaaaaaaaaaaay more than a stack trace.

permalink
report
parent
reply
5 points

I love gdb! I recently had to do a debug and wow its so cool! On gentoo I can compile everything with symbols and source and can do a complete stack trace.

permalink
report
parent
reply
5 points

…unless you build the executable with optimizations that remove the stack frame. Good luck debugging that sucker!

permalink
report
parent
reply
2 points

Am I the only one in this thread who uses VSCode + GDB together? The inspection panes and ability to breakpoint and hover over variables to drill down in them is just great, seems like everyone should set up their own c_cpp_properties.json && tasks.json files and give it a try.

permalink
report
parent
reply
0 points

i mean you’re expected to know the basic functioning of the compiler when you use it

permalink
report
parent
reply
-8 points

Imagine if you knew the most basic foundational features of the language you were using.

Next we’ll teach you about this neat thing called the compiler.

permalink
report
parent
reply
10 points

I’m not a C/C++ dev, but isn’t apport Ubuntu’s crash reporter? Why would dumps be going into there?

Though on a rhetorical thought, I am aware of systemd’s coredumptctl so perhaps its collecting dumps the same way systemd does.

permalink
report
parent
reply
11 points
*

https://wiki.ubuntu.com/Apport

It intentionally acts as an intercept for such things, so that core dumps can be nicely packaged up and sent to maintainers in a GUI-friendly way so maintainers can get valuable debugging information even from non-tech-savvy users. If you’re running something on the terminal, it won’t be intercepted and the core dump will be put in the working directory of the binary, but if you executed it through the GUI it will.

Assuming, of course, you turn crash interception on- it’s off by default since it might contain sensitive info. Apport itself is always on and running to handle Ubuntu errors, but the crash interception needs enabled.

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 5.3K

    Monthly active users

  • 1.5K

    Posts

  • 33K

    Comments