For debugging php code I use MacGDBp but it has its quirks: it shows only the top frame variables of the stack, it sometimes refuses to display any variable at all and last version has decorates the source text with non ascii characters. Is there any alternative that is native OS X? (ie. not Eclipse, I can't stand it).