Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2026-09

Unable to debug on Mac (Xcode 27)

2 messages · 1 person · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andrea Mauri

I posted this issue on the forum (
https://forum.lazarus.freepascal.org/index.php/topic,74965.0.html), since it blocks me I tried writing in the mailing list too. ---
I encountered an issue while debugging my applications on Mac. I suspect it is related to my last update to Xcode (Xcode 27). Now when I place a breakpoint and run my code, the debugger properly stop at the breakpoint but then stuck. It is not possibile to Run, Step Into, Step Over...

I tried with a bran new project (almost empty) and the debugger won't work.

I also have this custom compiler option set:

// sets the sdk for MacOS
If TargetOS = 'darwin' then
begin
  CustomOptions += '-WM10.15';
end;

Should I downgrade Xcode? To which version?
Any suggestions?

Lazarus 4.4 (rev lazarus_4_4) FPC 3.2.2 aarch64-darwin-cocoa

I tried installing Xcode 16.2 but it's not possible. Mac prevents me doing that saying that the OS is too new for XCode 16.2.

Any help would be appreciated.

Andrea
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20260916/a1487638/attachment.htm>

Reply by email

Andrea Mauri
to Andrea Mauri

Solved installing Xcode 26.6 (
https://developer.apple.com/download/all/?q=Xcode) and setting the debugger path to:
/Applications/Xcode-26.6.app/Contents/Developer/usr/bin/lldb

Best,

Andrea Mauri wrote 33 lines
I posted this issue on the forum ( https://forum.lazarus.freepascal.org/index.php/topic,74965.0.html), since it blocks me I tried writing in the mailing list too. --- I encountered an issue while debugging my applications on Mac. I suspect it is related to my last update to Xcode (Xcode 27). Now when I place a breakpoint and run my code, the debugger properly stop at the breakpoint but then stuck. It is not possibile to Run, Step Into, Step Over... I tried with a bran new project (almost empty) and the debugger won't work. I also have this custom compiler option set: // sets the sdk for MacOS If TargetOS = 'darwin' then begin CustomOptions += '-WM10.15'; end; Should I downgrade Xcode? To which version? Any suggestions? Lazarus 4.4 (rev lazarus_4_4) FPC 3.2.2 aarch64-darwin-cocoa I tried installing Xcode 16.2 but it's not possible. Mac prevents me doing that saying that the OS is too new for XCode 16.2. Any help would be appreciated. Andrea

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20260917/7230fd5c/attachment.htm>

Reply by email