A few tips for pd development on macOS:
Pd.app is not enabled for debugging, thus the app needs to be re-signed with the get-task-allow entitlement enabled:
- obtain the current entitlements with:
codesign --display --xml --entitlements pd.entitlements /Applications/Pd-0.54-0.app
- enable get-task-allow by either adding:
<key>com.apple.security.get-task-allow</key><true/>
or change the key with the same name to true if it already exists. 3. re-sign the app:
codesign -s - --deep --force --options=runtime --entitlements pd.entitlements /Applications/Pd-0.54-0.app
When the pd process is stopped, pd-watchdog spams the console with "watchdog: signaling pd...", making it impossible to use the debugger.
To disable pd-watchdog run without realtime priority (pd option -nrt
).
To pass options to pd core, use -pdarg <opt>
, e.g. in lldb:
lldb /Applications/Pd-0.54-0.app/Contents/MacOS/Pd -- -pdarg -nrt