Debugging on the Apple Mac using lldb

Issue #58 open
Former user created an issue

Hello, I just wanted to report that I've made some progress in trying to combine OmniPascal with another VSCode plug-in called Code-Debug on the Apple Mac. The debugger runs the app, and stops at breakpoints. We're still discussing how to set watches for local variables and class members.

I'll post back with any news. I feel that we are so close to having a fully viable FPC development tool for the Apple Mac with full visual debugging. None of that text based faffing around!

Comments (5)

  1. Christopher Wosinski repo owner

    That's awesome! I have also played around with Code-Debug some time ago and I managed to get breakpoints working on Windows. Unfortunately I didn't manage to get a debugger working on my Mac. So I haven't tested Code-Debug on a Mac yet.

    I'm currently working on OmniPascal for Mac. It'd be great to have a full development environment on Mac using VSCode.

  2. Mr Bee

    Is there any progress on this? I also would love to be able to debug my pascal program on my Mac using lldb.

    Thank you.

  3. Mr Bee

    I'm experimenting with LLDB Debugger extension by Vadim Chugunov. I think it works quite well although it doesn't provide much value-based interaction with the VSC editor, so you need to use the debug console to set breakpoints, add watch list, etc. But the debugger flow commands work well i.e. pause/continue, step over, step into, step out. Another problem is debug info compatibility between lldb and pascal data type which is beyond our scope.

    You need to use FPC v.3.0.2 and add -gl -gw3 -godwarfcpp compiler option when compiling your program so it can be debugged properly using lldb.

    Here's the evidence: vscode_omnipascal_lldb.png

  4. Log in to comment