문제

When I use the Log Message as Action in a Breakpoint is it still possible to print current variable values to the log output ?

When using a NSLog inline something like this is possible ...

NSlog(@"<DeleteArea> <State> CallToggle %i",[[deleteCardState userInfo] intValue]);

however in a breakpoint as Log Message using e.g. ...

@"<DeleteArea> <State> CallToggle %i",[[deleteCardState userInfo] intValue]

does not work.

How do you output formatted variables in breakpoints?

도움이 되었습니까?

해결책

You can do it as a Debugger Command as follows:

expression (void) NSLog(@"<DeleteArea> <State> CallToggle %i",[[deleteCardState userInfo] intValue]);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top