Mike Torrettinni 198 Posted May 5, 2022 Delphi 11.1, no patch 1 installed, yet. Can someone confirm they get same/similar debugger bug in this example code: uses System.StrUtils; procedure TForm1.Button2Click(Sender: TObject); var vPos1, vPos2: Integer; vLine, s: string; begin vLine :='testingcompiler'; vPos1 := 5; vPos2 := 7; s := MidStr(vLine, vPos1 + 1, vPos2 - vPos1 - 1); <-- Park cursor here and copp MidStr call to debugger end; Run and park on MidStr() call and copy the expression to debugger. I get an error F2084 Internal error... instead of 'n' in watch value: I really hope is just my copy and perhaps reinstall or patch 1 solves this. No problems with this code in 10.2.3 Share this post Link to post
Stefan Glienke 2002 Posted May 5, 2022 Indeed broken since after 10.2.3, can repro the F2084 in the evaluator in 10.3.3, 10.4.2 and 11.1 Share this post Link to post
Mike Torrettinni 198 Posted May 5, 2022 2 minutes ago, Stefan Glienke said: Indeed broken since after 10.2.3, can repro the F2084 in the evaluator in 10.3.3, 10.4.2 and 11.1 Hm, quite disappointing, but maybe this is very rarely used the way I use MidStr, or perhaps MidStr is on the way to be deprecated and they don't want to waste time on it. Share this post Link to post
Stefan Glienke 2002 Posted May 5, 2022 (edited) MidStr has nothing to do with it - it's a bug in the evaluator. If you put MidStr(vLine, 6, 1) into the evaluator it properly shows 'n'. Please report Edited May 5, 2022 by Stefan Glienke Share this post Link to post
Mike Torrettinni 198 Posted May 5, 2022 12 minutes ago, Stefan Glienke said: MidStr has nothing to do with it - it's a bug in the evaluator. If you put MidStr(vLine, 6, 1) into the evaluator it properly shows 'n'. Please report OK, it makes sense. Well, at least the workaround is simple: don't give debugger any tough math to do. 1 Share this post Link to post
Mike Torrettinni 198 Posted November 22, 2023 Happy to report this is fixed in 12.0 debugger! 1 Share this post Link to post