Debugging Coda Plug-In with LLDB
Atsushi Nagase
- Open Edit Scheme window (⌘<).
- Select Run pane from side bar.
- In Info tab, select Coda 2.app from Executable dropdown.
- Click the OK button to close the window.
- Select your your plug-in target.
- Select Build Settings tab, click Add Build Setting, select Add User-Defined Setting and set name as
INSTALL_BUNDLE
, value as1
for Debug configuration. - Switch to Build Phase tab, click Add Build Phase button and select Add Run Script
- Copy and paste the script bellow.
if [ $INSTALL_BUNDLE == 1 ]; then
DEST="$USER_LIBRARY_DIR/Application Support/Coda 2/Plug-ins/$FULL_PRODUCT_NAME"
ORG="$TARGET_BUILD_DIR/$FULL_PRODUCT_NAME"
rm -rf "$DEST"
mv "$ORG" "$DEST"
fi
Now you can debug with your LLDB console, enjoy!