Forum > Debugger

LLDB debugger (with fpdebug) (Beta) Debugger Problems

(1/2) > >>

Jon Trepte:
Using Lazarus 2.2.4 on Ventura 13.0.1 with Xcode 14.1 I find when I run a program I get the debugger error shown in the screenshot. The second attachment shows the settings.
If I 'run without debugging ' the program runs normally.
New to Lazarus but have been using Delphi for decades. Strangely the same system on another Mac runs perfectly. Any Ideas?

Martin_fr:
Can you please
- start the IDE
- open your project
- open from the menu: View > Ide Internals > Debug output
- And then Run/F9 in the debugger

After that copy the content of the "debug output" window, and post it here.

I assume you have used the official installers, and therefore have FPC 3.2.2 ?

Also please check in your "Project options"
- Optimization should be off or -O1
- "type of debug info" should be "dwarf 2 (-gw)" or "dwarf 2 with sets". => That is, it should not be dwarf-3

Dwarf 3 may actually work too, but for testing lets go with the above.

Jon Trepte:
Many thanks Martin. Attached is the log. All settings are as you stated with no breakpoints set. Program is a very simple form with 1 button and a OnClick handler that changes the Caption.
Jon

Jon Trepte:
Hi Martin,
 I'm wondering that it might have something to do with the mac and how it's configured. It is a MacBook Pro 15 Mid 2015 running Ventura with is not technically supported. I used OpenCore to install the OS. Could there be a problem with the graphics system? The log show that the failure occurred after the process was launched.

Process 56795 launched: '/Users/alisontrepte/Documents/project1.app/Contents/MacOS/project1' (x86_64)\

warning: (x86_64) /System/Library/Extensions/AppleIntelHD5000GraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelHD5000GraphicsMTLDriver load command 2 LC_SEGMENT_64 has a fileoff (0x30870000) that extends beyond the end of the file (0x14ee70), ignoring this section\

So maybe there is nothing wrong with Lazarus after all.

Let me know your thoughts and if you agree.
Many thanks for pointing me in the right direction.
Jon

Martin_fr:
It does look like that file has bad debug info. Or maybe the debug info that is found/installed belongs to a different version of that file. In any case this will stop lldb from loading debug info, and stop it from working.

I found
https://opensource.apple.com/source/lldb/lldb-310.2.36/www/symbolication.html

If you open the file
  components/lazdebuggers/lazdebuggerlldb/lldbinstructions.pas
around line 685, you should find the "target create" command.


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---  inherited Create('target create '+AFile);
You can try to add the --no-dependents  like this (keep the space before the closing quote)

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---  inherited Create('target create --no-dependents  '+AFile);
You then need to rebuild the IDE (menu Tools > Build Lazarus ...)

Let me know if that helps.

Navigation

[0] Message Index

[#] Next page

Go to full version