Debugging with Lazarus 1.6.4 with macOS 10.12.5 Sierra lazarus / 12-Debugger ---------------------------------------------------------------------- carl_caulkett · 2017-06-06 22:50 Hello, I know this question has been asked countless times but there seems to be a mass of conflicting information out there, and a lot of it is now out of date. So, can I ask, has anyone succeeded in being able to use an IDE based debugger, whether GDB or LLDB or anything else, in Lazarus 1.6.4 under Apple Mac Sierra 10.12.5? If so, how? Following another thread on the subject, I disabled SIP protection, but that doesn't seem to have made any difference. Thanks, Carl ---------------------------------------------------------------------- Phil · 2017-06-06 23:06 Quote from: carl_caulkett on June 07, 2017, 12:50:55 amSo, can I ask, has anyone succeeded in being able to use an IDE based debugger, whether GDB or LLDB or anything else, in Lazarus 1.6.4 under Apple Mac Sierra 10.12.5? If so, how? For the foreseeable future, I would suggest just creating an Xcode project for your Lazarus project and debug your app in Xcode. This Xcode project can be temporary or you can use it alongside Lazarus as a way to add things to the app bundle that Lazarus can't do, meaning you would need to do them manually or with a script. https://macpgmr.github.io/ObjP/ProjectXC.html ---------------------------------------------------------------------- carl_caulkett · 2017-06-07 04:11 Thanks a lot, Phil. That does seem quite involved! However, it's a lot better than not being able to debug at all! I'll give it a go. Cheers, Carl ---------------------------------------------------------------------- carl_caulkett · 2017-06-17 11:30 Hello, I finally got round to giving it a go. It works! Many thanks. ---------------------------------------------------------------------- carl_caulkett · 2017-06-17 16:14 There is a still a problem. I cannot see how to display the contents of Unicode strings. If I use local AnsiStrings then I can see the string contents. The trend in Lazarus, especially for new code is to use Unicode exclusively, but if we cannot debug UnicodeStrings then it makes life a bit difficult. ---------------------------------------------------------------------- carl_caulkett · 2017-06-22 11:59 On Googling further, I see that the problem is not limited to Lazarus. I had issues using the TJsonConfig class which deals exclusively with UnicodeStrings but  I've written a wrapper class which handles the conversion back to AnsiString.