10

It looks that OS X (10.6) does not generates codedumps by default.

Using the ulimit -c unlimited is not a good solution because ulimit does set the limit in an environment variable. This will work only for console applications executed from the shell that executed ulimit. If you have a gui application this will not work.

sorin
  • 161,544
  • 178
  • 535
  • 806

1 Answers1

13

You can enable core dumps and then launch your GUI app from the command line using open.

$ ulimit -c unlimited
$ open /Applications/Address\ Book.app

I just looked at TN2124 and it suggests a similar approach, only without using open and just launching the app directly, e.g.

$ ulimit -c unlimited
$ /Applications/TextEdit.app/Contents/MacOS/TextEdit
Paul R
  • 208,748
  • 37
  • 389
  • 560
  • This doesn't always work, please check http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x – sorin Feb 05 '10 at 14:16
  • That discussion appears to be about inheriting environment variables. Try the TN2124 technique above and see if that works for you. – Paul R Feb 05 '10 at 14:33