Marking discussion as SOLVED.
If you are using Windows, use DebugBreak(), that one works. I use it all the time.
Thank you very much, this works on Windows with FPDebugger provided the Uncheck'ed IgnoreAll as indicated by Martin.
No need of USES Windows ...
The bit of code (CocoR) ends up being :
while fCurrentInputSymbol<>EOFSYMB do begin
if fCurrentInputSymbol=lAheadSym then begin
DebugBreak;
{ Some checking about aAfterSymName preceding found aAheadSymName }
if lPrevSym<>lAfterSym then
DebugBreak;
lDefaultSym := lAfterSym;
Exit;
end;
lPrevSym := fCurrentInputSymbol;
Get;
end;
That pop's up the Call Stack when reaching one the DebugBreak instructions, then one F7 single step places you on the next executable line.
Maybe, just maybe, a feature would be the debugger poping the source at the DebugBreak instruction as if a Break point had been set there.
This is very useful and I should have asked many months/year ago.