-O-
minus uppercase-letter-O minus
https://www.freepascal.org/docs-html/user/userap1.htmlStrange. It definitely works here. I don't see how this could be OS/Target specific. It simply says: Don't optimize. That should work on all targets.
Maybe something to run past the FPC team....
But never mind, after looking at the log, it wont (most likely) be relevant for this case.
Currently I
assume that some output format of lldb may have changed.
Even for a watch like "1" the debugger tries to get the current pause location. As this is needed in many cases. If that fails, it also fails watches that don't need it.
While the log has not enough info to trace it all the way, it does give me a start point.
GetInfoContextForContext ADDR NOT FOUND for 1, 0
Could you please run the log again, but this time with
./lazarus.app/MacOS/Content/lazarus --debug-log=file --debug-enable=DBG_VERBOSE,DBG_WARNINGS,DBG_ERRORS
DBG_STATE,DBG_EVENTS,DBGMI_QUEUE_DEBUG,DBG_FPDEBUG_VERBOSE,FPDBG_COMMANDS,FPDBG_THREADS,FPDBG_QUEUE,DBG_DATA_MONITORS,DBG_THREAD_AND_FRAME,DBG_CMD_ECHO,DBG_CMD_ECHO_FULL
Also at the same time please do the following
-
Before you start the debugger, open the "Debug output" window from the menu "View" > "IDE Internals" > "Debug Output"
- Then debug, the window will fill up
- Once the debugging is done, copy the content of that window, and attach it here
Please alse (re-) confirm: When hovering the mouse and getting a hint on a variable, then the correct result is returned. This is for the same variable as in the watches window.
I know you said that before. Just double checking.
There is one tiny differences in the debugger code between those 2 cases.
If this is a described, then include this in the log as follows.
- first let the debugger fail on the watches window
- only then / only after the watches failed: Hover and get a hint
(Don't step or run)
- kill the debugger: menu Run > Reset debugger
Don't do anything else after the hint => so I can find it as the last value-eval in the log.
Btw which exact CPU (M1, M2, M3) do you have? (afaik those are the ones currently avail?)