Skip to content

iandai/Debug-SIMBL-Plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Debug Simbl plugin

It's hard to debug simbl plugin. Without debug tool, it is difficult to build applications. This article introduced a way to debug simbl plugin. Because it's written five years ago, Xcode related contents have been outdated. Updated with Xcode 5 version.

  1. Change Run executable

  • From menu, select "Project" > "Scheme" > "Edit Scheme" and click.
  • From popout window, select "Run" section, change executable path to your debug application. executable
  1. Add Run Script Build Phase

  • Select your project in Xcode 5, then select "Build Phases" tab.
  • From menu, select "Editor" > "Add Build Phase" > "Add Run Script Build Phase". Build Phase
  • Add following script in run script's input field.
# clean up any previous products/symbolic links in the SIMBL Plugins folder
if [ -a "${USER_LIBRARY_DIR}/Application Support/SIMBL/Plugins/${FULL_PRODUCT_NAME}" ]; then
	rm -Rf "${USER_LIBRARY_DIR}/Application Support/SIMBL/Plugins/${FULL_PRODUCT_NAME}"
fi

# Depending on the build configuration, either copy or link to the most recent product
if [ "${CONFIGURATION}" == "Debug" ]; then
# if we're debugging, add a symbolic link to the plug-in
ln -sf "${TARGET_BUILD_DIR}/${FULL_PRODUCT_NAME}" \
	"${USER_LIBRARY_DIR}/Application Support/SIMBL/Plugins/${FULL_PRODUCT_NAME}"
elif [ "${CONFIGURATION}" == "Release" ]; then
# if we're compiling for release, just copy the plugin to the SIMBL Plugins folder
cp -Rfv "${TARGET_BUILD_DIR}/${FULL_PRODUCT_NAME}" \
	"${USER_LIBRARY_DIR}/Application Support/SIMBL/Plugins/${FULL_PRODUCT_NAME}"
fi
  1. Run and Enjoy debugging.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published