mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 11:57:46 +08:00
Added support for JavaScript third-party debuggers
Summary:* Add ability to configure the app that should open when starting debugging axemclion discussed this feature with tadeuzagallo and martinbigio on: https://github.com/facebook/react-native/issues/5051 Closes https://github.com/facebook/react-native/pull/5683 Reviewed By: martinbigio Differential Revision: D2971497 Pulled By: mkonicek fb-gh-sync-id: 91c3ce68feed989658124bb96cb61d03dd032599 fbshipit-source-id: 91c3ce68feed989658124bb96cb61d03dd032599
This commit is contained in:
committed by
Facebook Github Bot 1
parent
b9396cd744
commit
4c8a9f0d00
@@ -62,7 +62,7 @@ RCT_EXPORT_MODULE()
|
||||
_injectedObjects = [NSMutableDictionary new];
|
||||
[_socket setDelegateDispatchQueue:_jsQueue];
|
||||
|
||||
NSURL *startDevToolsURL = [NSURL URLWithString:@"/launch-chrome-devtools" relativeToURL:_url];
|
||||
NSURL *startDevToolsURL = [NSURL URLWithString:@"/launch-js-devtools" relativeToURL:_url];
|
||||
[NSURLConnection connectionWithRequest:[NSURLRequest requestWithURL:startDevToolsURL] delegate:nil];
|
||||
|
||||
if (![self connectToProxy]) {
|
||||
@@ -82,7 +82,7 @@ RCT_EXPORT_MODULE()
|
||||
if (!runtimeIsReady) {
|
||||
RCTLogError(@"Runtime is not ready for debugging.\n "
|
||||
"- Make sure Packager server is running.\n"
|
||||
"- Make sure Chrome is running and not paused on a breakpoint or exception and try reloading again.");
|
||||
"- Make sure the JavaScript Debugger is running and not paused on a breakpoint or exception and try reloading again.");
|
||||
[self invalidate];
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user