fpdebug error with string
Original Reporter info from Mantis: nanobit @nanobit
-
Reporter name:
Original Reporter info from Mantis: nanobit @nanobit
- Reporter name:
Description:
GNU debugger (with fpdebug), Dwarf (any)
There is some problem with string (not shortstring).
Stepping into debugTest creates this error message:
[Window Title]
The debugger experienced an unknown condition
[Content]
Press "Ignore" to continue debugging. This may NOT be safe. Press "Abort" to stop the debugger.
Exception: ERangeError with message "Range check error"
Context: TFpGDBMIDebuggerCommandLocals. State: dsPause
$00E53DEE line 714 of fpdbgdwarffreepascal.pas
$00E3AE17 line 707 of fppascalbuilder.pas
$00E3948E line 1010 of fppascalbuilder.pas
$00E3BC9C line 1042 of fppascalbuilder.pas
$0127AB7F line 299 of fpgdbmidebugger.pp
$0127A728 line 241 of fpgdbmidebugger.pp
[Abort] [Ignore]
Steps to reproduce:
program project;
uses
sysutils, forms, Interfaces;
procedure debugTest( b: boolean);
var
logFName, heaptrcFName: string;
begin
heaptrcFName := ChangeFileExt(Application.ExeName, '.heap.trc');
end;
begin
debugTest( true);
end.
Mantis conversion info:
- Mantis ID: 34746
- OS: Windows
- OS Build: 10
- Platform: win32
- Version: 2.0RC3