From 3a664a0008619688a616e8d813f34b397a13e63e Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Tue, 29 Sep 2015 09:06:23 -0700 Subject: [PATCH] Log column number in RCTRedBox messages Reviewed By: @jspahrsummers Differential Revision: D2489364 --- React/Modules/RCTRedBox.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/React/Modules/RCTRedBox.m b/React/Modules/RCTRedBox.m index ecf3fd921..733a43713 100644 --- a/React/Modules/RCTRedBox.m +++ b/React/Modules/RCTRedBox.m @@ -193,9 +193,8 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder) } cell.textLabel.text = stackFrame[@"methodName"]; - - NSString *fileAndLine = [stackFrame[@"file"] lastPathComponent]; - cell.detailTextLabel.text = fileAndLine ? [fileAndLine stringByAppendingFormat:@":%@", stackFrame[@"lineNumber"]] : nil; + cell.detailTextLabel.text = [NSString stringWithFormat:@"%@ @ %@:%@", + [stackFrame[@"file"] lastPathComponent], stackFrame[@"lineNumber"], stackFrame[@"column"]]; return cell; }