Forum > Editor

record structure display while editing question

<< < (2/3) > >>

Martin_fr:
I am not aware of such a feature.

Currently, indeed the value in the debug hint comes from the debugger.
I.e., from the running executable and/or the debug info associated with it => that is either the memory of the process or from hardcoded info in the debug info in the exe file on disk.

In theory codetools could be extended to read the source before the hint, and display such code. Other than "in theory" I can't comment on it.

Well that, and that I personally would not want such a feature to be active in my setup. I prefer the small hint (for the few cases when I actually use hints).
If I need to see sources, then I have them open in a 2nd (or 3rd or 4th even 5th...) Source-editor window. (my 2 cents)

440bx:
Thank you Martin.

Since the editor can currently show a small hint, I wondered if there was an option to make it show more than just that one-liner definition.


--- Quote from: Martin_fr on May 09, 2024, 03:03:39 pm ---If I need to see sources, then I have them open in a 2nd (or 3rd or 4th even 5th...) Source-editor window. (my 2 cents)

--- End quote ---
Normally I do the same but, sometimes I just need a quick memory refresh and going to a different window and locating the definition I'm interested in is "a lot of work" for something that could potentially be done very quickly.

FWIW, I got used to that feature from using IDA Pro.  In IDA Pro, hovering over a number of identifiers causes it to show the text associated with the identifier, e.g, hovering over a function name causes it to display some of the beginning instructions.  I find the feature useful and I miss it when coding because it saves time (no need to jump around in the code or go to another window.)

It's nice to know the feature isn't available.  At least I know the reason I don't have it isn't because I've missed setting an editor's option to the appropriate value somewhere.

Martin_fr:
This is the info, I currently have on those hints. https://wiki.lazarus.freepascal.org/Lazarus_IDE_Tools#Hints_from_comments

440bx:

--- Quote from: Martin_fr on May 09, 2024, 04:15:47 pm ---This is the info, I currently have on those hints. https://wiki.lazarus.freepascal.org/Lazarus_IDE_Tools#Hints_from_comments

--- End quote ---
That's good information, thank you Martin.

Now I have another question, I figured I'd have a look at the "parent page" https://wiki.lazarus.freepascal.org for other potentially useful information.  I noticed that the parent page does not have a link to the "Lazarus IDE Tools" page.  Is that an unintended omission or is that page reachable in some way I missed ?

Martin_fr:
Not sure what you mean by "parent page"?  The wiki isn't strictly organized as a "tree".

The main page certainly can't link to every page within the wiki. And as the wiki has lots of different content on Fpc and Lazarus it is expected that most of it isn't on the main page.

I don't know what the odds are on getting that changed. Probably not for that single page, don't know if an entry point (e.g. portal?) could be created, and what the requirements would be.

But other than linking it from the main page => it's a wiki. Open for improvement.


--- Quote --- I figured I'd have a look at the "parent page" https://wiki.lazarus.freepascal.org for other potentially useful information.
--- End quote ---
Probably easier to follow the category pages (at the bottom of the page). Though they may need maintenance too.

In the IDE itself, many of the IDE Windows support F1 to take you to (old) wiki pages.

And (from my current signature) https://wiki.lazarus.freepascal.org/New_IDE_features_since

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version