macOS Sonoma 14.1.2 (ARM)
This is gonna make it tricky. I don't have that myself for testing (I do lldb related tests under linux, but with X86). Worst case, I can access an M2 remotely. But I try to avoid that at all cost (Being used to non-Mac keyboard and mouse behaviour, and that means a Mac never does what I want it to do
).
It also means, that debugging on Mac is the least tested. It only gets the testing by users (and the Lazarus team members that use Mac). But on explicit testing (due to limits in lldb I can't even run my automated tests).
But non of that should cause such a difference.
"invalid" is a specific error. But it still could be caused in too many places. (Originally it was set when the debugger was not paused, but now it is also set if no data was returned (for unknown reasons, i.e. no other error was set). So it could have a few reasons.
----
(In case of "lldb with fpdebug) there are actually some differences between watch and hint. Mainly how the result is internally stored. It seems quite strange that any type of data should trigger a failure to store the result for watches....
Just to make sure: Can you compile you IDE with -O-
Menu: tools (preferences on MAC???) > configure build Lazarus
Then in custom options -O-
and select "make clean" radio box
then press build, and restart the IDE.
Actually, when you rebuild, please also add to the custom options
-O-
-Sa
-dDBG_VERBOSE
-dDBG_WARNINGS
-dDBG_ERRORS
-dDBG_STATE
-dDBG_EVENTS
-dDBGMI_QUEUE_DEBUG
-dDBG_FPDEBUG_VERBOSE
-dFPDBG_COMMANDS
-dFPDBG_THREADS
-dFPDBG_QUEUE
-dDBG_DATA_MONITORS
-dFPDBG_DWARF_ERRORS
-dDBG_THREAD_AND_FRAME
And then, if it still happens run Lazarus with
--debug-log=somefile.txt
and submit that file.