4 ms·
Interesting. I have used VSCode on Mac for C++ but it has been a royal pain in the ass recently with lldb-mi issues related to Catalina. If you don't mind shar
by satysin 7y ago
Interesting. I have used VSCode on Mac for C++ but it has been a royal pain in the ass recently with lldb-mi issues related to Catalina.
If you don't mind sharing I am very interested in your setup.
- tpush 7y agoSure! I use CMake for all my projects, and passing "-D CMAKE_EXPORT_COMPILE_COMMANDS=ON" generates the compile_commands.json for clangd. I create a symlink to it in the main project folder so clangd can find it. Clangd embeds clang-format and clang-tidy, so given appropriate configuration files formatting in VSCode just works with no extra extensions but vscode-clangd. For debugging, I use CodeLLDB. Haven't had any problems with it so far, everything seems to work fine. Debug console works etc.
- pfranz 7y agoIn case you (or someone else reading this) didn't eventually find a workaround, here's how I was able to get lldb-mi to work in Catalina: https://github.com/microsoft/vscode-cpptools/issues/3829#issuecomment-578454043 https://github.com/microsoft/vscode-cpptools/issues/3829#iss... I also had the library issue mentioned here and copied the file the same way to fix that: https://github.com/microsoft/vscode-cpptools/issues/3829#issuecomment-599222739 https://github.com/microsoft/vscode-cpptools/issues/3829#iss...