koky
koky

Reputation: 23

Exception breakPoint at [self.window makeKeyAndVisible]

If I delete Exception BreakPoint ,all will be ok. But When I add Exception breakPoint to debug ,something wrong:

  self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
  self.window.backgroundColor = [UIColor whiteColor];
  self.tabBarController = [[ALTabBarController alloc] init];
  self.window.rootViewController = self.tabBarController;
  [self.window makeKeyAndVisible];

breakpoint like this and run, project always break at [self.window makeKeyAndVisible] ,click "continue programe execution" button some times,it can be run

Upvotes: 1

Views: 392

Answers (1)

Abhishek Jain
Abhishek Jain

Reputation: 4739

Edit Exception breakpoint like this-

enter image description here

And select Objective C like this-

enter image description here

Hope this helps!

Upvotes: 6

Related Questions