问题
- VSCode v1.14.2
- macOS 10.12.6 Sierra
- lldb -version: lldb-370.0.42
- Lazarus 1.8.0 RC3
- FPC 3.0.2
Hi Wosi (or anyone that can help!),
As you may know debugging Lazarus/Free Pascal on macOS Sierra is problematic because of issues with GDB. This forces us to debug our apps in LLDB using Xcode as the environment (see here: https://macpgmr.github.io/ObjP/ProjectXC.html).
This works reasonably well but I would prefer to use OmniPascal/VSCode.
I have investigated the VSCode extensions "LLDB Debugger" v0.5.4 and "Native Debug" v0.21.2, and while the "Native Debug" extension allows me to set breakpoints, it appears to be not sufficiently developed yet to be suitable for actual use.
To recap then, do you have any ideas for how I can debug Lazarus/FPC apps on the Apple Mac using LLDB and VSCode/OmniPascal?
EDIT: I have made some progress using Native Debug, although there are some problems accessing class type variables. This is described here: https://github.com/WebFreak001/code-debug/issues/118
来源:https://stackoverflow.com/questions/45324418/how-do-i-get-omnipascal-to-integrate-with-lldb-on-the-macos-10-12-6