1 | #import <Foundation/Foundation.h> |
2 | |
3 | namespace error { |
4 | int blah; |
5 | } |
6 | |
7 | @interface Util : NSObject |
8 | + (void)debugPrintErrorStatic; |
9 | - (void)debugPrintError; |
10 | @end |
11 | |
12 | @implementation Util |
13 | + (void)debugPrintErrorStatic { |
14 | NSError* error = [NSError errorWithDomain:NSURLErrorDomain code:-1 userInfo:nil]; |
15 | NSLog(@"xxx, error = %@" , error); // break here |
16 | } |
17 | |
18 | - (void)debugPrintError { |
19 | NSError* error = [NSError errorWithDomain:NSURLErrorDomain code:-1 userInfo:nil]; |
20 | NSLog(@"xxx, error = %@" , error); // break here |
21 | } |
22 | @end |
23 | |