Would need some more info...
First of all:
- Which debugger are you using?
Menu: Tools > Options > Debugger backend => there is FpDebug, lldb(with FpDebug), gdb, ...
(The exact choice depends on your OS).
- Your Lazarus version
- Your OS
- Your projects "Debug info" settings. Which version of DWARF?
- Did you compile with optimization on/off? -O- (off), -O1 or -O2 ?
How is the variable declared?
Are you in a nested procedure?
A recursion would not normally make the identifier "go away" => but if you exceed the stack (endless/deep recursion) then you get an error (wouldn't actually stop at the breakpoint).
Open the stack window (menu "View": Debug windows > Call Stack) => are you inside the function?
Also, if you are on the very first/last line odd things may happen.
Is there a try/except or try/finally block?
Inside finally blocks, issues may arise (shouldn't, but ....)