Closed nekromant closed 7 years ago
Hi nekromant
This error from gdb indicates there isn't any debug info that references that file path inside the executable you're debugging. This could be because paths were changed after the executable was built, or this file was part of a separate statically built library or complication step, which did not include debug info for that path.
Check you're compiling every file with debug info (-g
) included
Info like this should definitely be communicated back to the user in some way: "btw, these breakpoints you've added aren't found inside the current executable!"
I've not decided the best way of doing this yet.
I could show a notification outlining this, but these messages would be redundant if you have multiple debuggable executables within the same project - You wouldn't want an error showing your server/foo
breakpoints not being valid, if you're currently debugging the client
executable in the current project, and not the server
one. It could often be intentional that some breakpoints aren't available, depending on what the user is debugging.
@ProPuke Yep, you're right. I had a problem with my .atom-build not having the correct BUILD_TYPE and being in a terrible rush. Sorry for bothering. Still, think an optional popup window with a warning if no breakpoints were registered would be nice. Thanks for your hard work!
On my setup (latest atom from ppa) and latest version of the plugin the gdb silently skips all breakpoints which is very annoying.
Here's what I get from developer console:
It looks that for some reason it can't find the source file, although the path to the source file is absolutely correct.