有时我什么也不想做。
我只想有一个语句,以便我可以设置断点。
在C和Objective-C中,我们使用while (false);
假设我想要退出一个函数。
在 PHP 中应该使用什么?
我只想有一个语句,以便我可以设置断点。
在C和Objective-C中,我们使用while (false);
假设我想要退出一个函数。
-(void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
self.navigationItem.leftBarButtonItem=nil;
self.navigationItem.rightBarButtonItem=nil;
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(updateDisplays) name: NotificationUpdateArroworLocation object:nil];
PO(self.tableView.indexPathForSelectedRow);
while(false);//I put break point here so program stop here.
}
在 .net 中,我们有 doNothing(不确定我是不是编造的?)。在 PHP 中应该使用什么?
xdebug_break()
。 - Tomeh