At some point during my work, Xcode's po
and p
commands stopped working. No matter what I enter, it doesn't generate output:
(gdb) po self (gdb) po [self name] (gdb) po [UITableView class] (gdb) po @"Hello" (gdb) p indexPath.row (gdb) print indexPath.row (gdb) po fjkldsjflksdjklwjfkljfkldsjflk (gdb)
When I enter any of these commands, the command line just goes to the next line, where it prints the blue (gdb)
, but no output.
I tried the following steps:
The other debugging tools in Xcode seem to work okay: Breakpoints, step-by-step execution, the Auto variable examination window etc.
Any ideas?
EDIT: Doesn't work even after a re-install of Xcode.
The po command (a.k.a. expr --O -- ) does everything that p does, but instead of printing the result, if the result is a pointer to an ObjC object, it calls that object's "description" method, and prints the string returned by that method(*).
The command = ( po-statistics ) computes the total number of entries in the PO file, the ordinal of the current entry (counted from 1), the number of untranslated entries, the number of obsolete entries, and displays all these numbers.
Silly me, I was in the 'Target Output' window instead of the 'Debugger Output' window.
Somehow I thought I checked the other console windows there, but apparently I didn't.
I added filter in debugger which hid other logs. Removing the filter worked for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With