Forum > Debugger

FpDebug feature request

(1/1)

440bx:
Hello,

Case 1:

When hovering over an array variable, if the array is part of a record that is being accessed in the scope of a "with" statement then FpDebug cannot currently show the value of the referenced array element.  Please see the first attachment.

Case 2:

if the array variable is explicitly qualified with the record name then FpDebug _can_ (and does) show the value of the referenced array element.  Please see the second attachment.

the feature request is: add the capability in FpDebug to resolve the scope in which the variable appears (it normally does anyway.) This would enable it to show the value in case 1 as it does in case 2.

Comments welcome.

Martin_fr:
There is no "with" info in the debug info. (dwarf has it, fpc does not use it / fpdebug hence doesn't have it yet either).

IIRC, some variables work in "with" blocks, because codetools gets a go at it first. (but I may be mistaken).

If I am not mistaken, then it needs to be dealt with in codetools. (i.e. not something I (usually) work on / but something that can be done...)

Martin_fr:
Just tested, codetools resolves this in other cases...

So bug report against code tools...

440bx:

--- Quote from: Martin_fr on October 03, 2024, 01:17:36 am ---There is no "with" info in the debug info. (dwarf has it, fpc does not use it / fpdebug hence doesn't have it yet either).
--- End quote ---
I see.  Without that information it's definitely complicated to say the least.


--- Quote from: Martin_fr on October 03, 2024, 01:17:36 am ---IIRC, some variables work in "with" blocks, because codetools gets a go at it first. (but I may be mistaken).

--- End quote ---
That would explain why there are cases in which it works.


--- Quote from: Martin_fr on October 03, 2024, 01:17:36 am ---If I am not mistaken, then it needs to be dealt with in codetools. (i.e. not something I (usually) work on / but something that can be done...)

--- End quote ---
It would be nice but, I think the real solution is to have FPC emit the necessary debug info. 

talking about info... thank you for all that information.

Navigation

[0] Message Index

Go to full version