Hi, I tried to debug my puredata external with Xcode4.
What I did so far is:
1) In the 'edit scheme'-menu, I added in the 'Executable'-list: Pd-extended.app. 2) Build configuration is Debug 3) Debugger is GDB. 4) I set some breakpoints in my source file.
When I hit Run, pd starts and I open my patch, where the external is, which I want to debug. The patch runs, but Xcode does not stop at the given breakpoints.
Do you know what I am doing wrong here?
Thanks, Patrick
I don't use Xcode, so I don't know specifics. My guess is that you have to also add 'pd' itself. Pd is two processes 'pd-gui' and 'pd'. On Mac OS X, the 'pd-gui' process is represented by Pd-extended.app (in Contents/MacOS/Pd-extended). You probably need to also add 'pd', which is Pd-extended.app/Contents/Resources/bin/pd
What ever you figure out, it would be great if you could add a "Debugging" section to this wiki page:
http://puredata.info/docs/developer/PdExternalsInXcode
.hc
On Tue, 2011-08-30 at 15:20 +0200, Patrick Gampp wrote:
Hi, I tried to debug my puredata external with Xcode4.
What I did so far is:
- In the 'edit scheme'-menu, I added in the 'Executable'-list: Pd-extended.app.
- Build configuration is Debug
- Debugger is GDB.
- I set some breakpoints in my source file.
When I hit Run, pd starts and I open my patch, where the external is, which I want to debug. The patch runs, but Xcode does not stop at the given breakpoints.
Do you know what I am doing wrong here?
Thanks, Patrick _______________________________________________ Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
Hi, i haven't used Xcode4 yet. For older versions i don't define the application bundle as executable, but rather the unix program, which is in e.g. /Applications/Pd-0.43-0.app/Contents/Resources/bin/pd My experience is that pd-extended won't take any command-line parameters (which is very useful for debugging), as opposed to pd-vanilla. gr~~~
Am 30.08.2011 um 15:20 schrieb Patrick Gampp:
Hi, I tried to debug my puredata external with Xcode4.
What I did so far is:
- In the 'edit scheme'-menu, I added in the 'Executable'-list: Pd-extended.app.
- Build configuration is Debug
- Debugger is GDB.
- I set some breakpoints in my source file.
When I hit Run, pd starts and I open my patch, where the external is, which I want to debug. The patch runs, but Xcode does not stop at the given breakpoints.
Do you know what I am doing wrong here?
Thanks, Patrick _______________________________________________ Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
-- Thomas Grill http://grrrr.org +43 699 19715543
With 0.42.5, most of the command line flags were fixed in Pd-extended, in 0.43 its definitely fixed.
.hc
On Tue, 2011-08-30 at 22:53 +0200, Thomas Grill wrote:
Hi, i haven't used Xcode4 yet. For older versions i don't define the application bundle as executable, but rather the unix program, which is in e.g. /Applications/Pd-0.43-0.app/Contents/Resources/bin/pd My experience is that pd-extended won't take any command-line parameters (which is very useful for debugging), as opposed to pd-vanilla. gr~~~
Am 30.08.2011 um 15:20 schrieb Patrick Gampp:
Hi, I tried to debug my puredata external with Xcode4.
What I did so far is:
- In the 'edit scheme'-menu, I added in the 'Executable'-list: Pd-extended.app.
- Build configuration is Debug
- Debugger is GDB.
- I set some breakpoints in my source file.
When I hit Run, pd starts and I open my patch, where the external is, which I want to debug. The patch runs, but Xcode does not stop at the given breakpoints.
Do you know what I am doing wrong here?
Thanks, Patrick _______________________________________________ Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
-- Thomas Grill http://grrrr.org +43 699 19715543
Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev