Seems I can call and debug Mac API calls without debugger barfing - whattodo? lazarus / 12-Debugger ---------------------------------------------------------------------- MISV · 2017-07-03 18:39 n Lazarus 1.6.4 running in debugger macOS Sierra 10.12.4 With the underneath code (or anything calling any Mac API) I am getting Quote"The debugger encountered and error when trying to run/step the application. Cannot find bounds of current function" Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure myTest;var  TestStrUTF8: UTF8String;  TmpStrPr_CSS: ConstCStringPtr;  TmpCFStrRef: CFStringRef;  TmpStrPtr: Pointer;begin  TestStrUTF8 := 'http://example.com';  TmpStrPtr := Pointer(TestStrUTF8)  TmpStrPtr_CSS := ConstCStringPtr(TmpStrPtr);  TmpCFStrRef := CStringCreateWithCString(nil, TmpStrPtr_CSS, kCFStringEncodinguTF8); // Note1: we are only using ASCII, Note2: We have tried KCFStringEncodingWindowsLatin1 with same problem   // jumps out of routine - and shows debugger dialog "Cannot find bounds of current function" here   showmessage('never reaches, crashes first');end;  I do not otherwise have problems debugging.I am running above code in main thread.Problem seems to be the same for all Mac API calls - tried multiple within that "area" Do you guys think the code will run correctly in release build? If so I guess I can try build a test case and "showmessage" debug it? ---------------------------------------------------------------------- MISV · 2017-07-04 17:25 No luck trying version 8.0 of GDB... Can anyone see/try if here is anything wrong with my code? And if you can get it working, what settings are you using? Could it be anything o do with SIP/address relocation?