-
-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Options per each tree item for including non-source files #13
Comments
Hi, you can look this: https://github.com/rohanrhu/gdb-frontend#gdb-related-issues-and-tips GDB does not give sources of linked object until stepping a line that calls a function from the linked object once. You can add break point a line and step it once, then you will see sources from linked object hereafter during the session. |
Ah I see, that at least explains the technical side. However in my opinion that is extremely inconvenient to use, since I already know where I want to add my breakpoints so I don't want to manually step around or look up the line number in an external editor to do that. If I wanted to look up my breakpoints manually in an external text editor I could have used command line gdb to start with, the entire point of a frontend for me is to solve such inconveniences. I suggest you just provide a way to easily expand the file tree to the left to work around this. For example, just giving the folders a context menu or a "fully expand" icon to the right of each folder entry would be useful, such that I can open the other source files immediately and set the breakpoints right in the UI. Edit: here's a quick mockup idea: |
Usually, a breakpoint and stepping once a random line shows all sources. But i will look for a solution for this also. Do you mean "Expand/Collapse All" buttons for left side? You can also use |
I just added a quick mockup image, I hope that will help!
|
Your frontend is really good-looking by the way. Other than these small difficulties browsing the files it looks way more promising than all other frontends I have tried, which usually tend to feel really outdated and horrible to use for some reason. So I really appreciate this project. Edit: e.g. "nemiver", the best one I've tried so far other than yours, has no "gdb" prompt at the bottom for whatever reason which is a huge downside if I can't find something in the UI, and it's also abandoned |
Thank you. You can also access to GDB shell with You can set that ID (gdb-frontend) with |
This is what happens when I load my executable, as you can see just
main.c
pops up:This wouldn't be an issue if the tree shown to the left would actually allow me to browse the project folder for the other files. However, for some reason it doesn't, and opening them all up manually via "Load File" would take forever (since load file is unsorted as mentioned in #12 and doesn't start out in the directory I previously picked something from, making it really tedious to open up multiple files form the same folder). So some sort of "Show other files from this directory" context menu or button in the tree view to the left would really help, or alternatively a fix for whatever causes the other source files to not get detected in the first place. If you need more info for fixing that detection please tell me what you need, I'm happy to provide what I can.
The text was updated successfully, but these errors were encountered: