Re: Debugging screensavers
Re: Debugging screensavers
- Subject: Re: Debugging screensavers
- From: David Remahl <email@hidden>
- Date: Tue, 25 Mar 2003 21:20:37 +0100
Does anyone know of a way to run a screensaver through the debugger?
The current way is to use lots of NSLog's and look at the crash dump
if things go horribly wrong.
Drew
You need to create a custom executable (Project -> New Custom
Executable in Project Builder). Associate the executable with System
Preferences.app. Then choose System Preferences as the active
executable, and run the debugger from project builder. The debugger
will then break on any breakpoints you've set in your code, as well as
on crashes.
Sorry for replying to my own message, but Clark's message that arrived
when I already sent mine, reminded me that a screen saver inherently
blocks the screen :-).
Of course, you can also use gdb from the command line to run System
Preferences.
SaverLab is also a good tool to debug screen savers. You can create a
custom executable for that application as well.
...which is why those two suggestions are better for your purposes.
The first suggestion still applies to the saver Preview, if the problem
is exhibited in that mode as well.
/ Rgds, David
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.