Reputation: 14465
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.
Upvotes: 62
Views: 18715
Reputation: 802
I added filter in debugger which hid other logs. Removing the filter worked for me.
Upvotes: 37
Reputation: 14465
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.
Upvotes: 224