Skip to content

Commit

Permalink
[ReactNative] Suggest un-pausing debugger when there are issues
Browse files Browse the repository at this point in the history
Summary:
@public
The most common problem I've noticed is that the debugger is paused, so we
shouldn't ask the user if Chrome is open, because it usually is.

Test Plan: Try to reload with debugger paused, see new error message.
  • Loading branch information
sahrens committed May 1, 2015
1 parent 76dc146 commit 6cb7178
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Libraries/RCTWebSocketDebugger/RCTWebSocketExecutor.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ - (instancetype)initWithURL:(NSURL *)URL
retries--;
}
if (!runtimeIsReady) {
RCTLogError(@"Runtime is not ready. Do you have Chrome open?");
RCTLogError(@"Runtime is not ready. Make sure Chrome is running and not "
"paused on a breakpoint or exception and try reloading again.");
[self invalidate];
return nil;
}
Expand Down

0 comments on commit 6cb7178

Please sign in to comment.