Home Built Canoe Hoist
Wednesday, May 23rd, 2007
Occassionally you’re trying to debug something where a regular breakpoint won’t work. For example, for some reason bringing the debugger to the front might interfere with tracking down the bug.
For example, if you are examining focus.
Here is a way to alter a breakpoint in XCode so that it prints something, then pauses, then resumes.
Open the breakpoints window. Click the auto-play checkbox for your breakpoint. Then add a “Debugger Command” action and put some code like this:
up
dbt
call (void) sleep( 3 )
(dbt is my presonal macro for a traceback function.) Using call to invoke sleep makes it pause for three seconds before continuing.
I repaired Lucy’s page, which hadn’t been working since my Linux machine crashed in March.
I did a test run of one of the silly old Mad Libs: Here is what I got.
One day, Lucy decided to conduct a scientific experiment. She wanted to find out the temperature at which a long way home boils. She went to the ballroom, got out a content wine glass and filled it full of long way homes. But that wasn’t soft white enough, so she added a pages of cookiess and some who is to blame. Then, she put the wine glass on the catastrophic refrigerator to boil. She waited and waited. Finally the long way home started to boil. The bubbles got so adored they looked like they were going to spill right over the sides of the wine glass. Lucy didn’t know what to do. First, she baked at the wine glass to try to scare the bubbles, but nothing happened. Then, she tried pulling the wine glass off the catastrophic refrigerator, but it was too mysterious. Suddenly, Andy came in and saw the mess. He turned off the catastrophic refrigerator and said,’Don’t you know long way home boils at 77 ounces Farenheit.’ ‘Really?’ asked Lucy. ‘I guess I didn’t need to boil long way home after all!’
Make your own madlib here:
http://paddlefish.net/lucy/
( Click on “Games” )