Skip to content

Commit

Permalink
Delete Libraries/JSInspector
Browse files Browse the repository at this point in the history
Summary:
Legacy JS-based debugger implementation added in D4021516 — no longer referenced anywhere.

- Remove all modules under `Libraries/JSInspector/`.
- Remove all `XHRInterceptor` call sites.

We intend to replace this logic with native debugger `Network` domain support in our C++ layer.

Changelog:
[General][Breaking] - Remove Libraries/JSInspector modules

Differential Revision: D68780147
  • Loading branch information
huntie authored and facebook-github-bot committed Jan 28, 2025
1 parent 156ee5b commit 48283e4
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 489 deletions.
4 changes: 0 additions & 4 deletions packages/react-native/Libraries/Core/setUpDeveloperTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ declare var console: {[string]: $FlowFixMe};
* You can use this module directly, or just require InitializeCore.
*/
if (__DEV__) {
// Set up inspector
const JSInspector = require('../JSInspector/JSInspector');
JSInspector.registerAgent(require('../JSInspector/NetworkAgent'));

// Note we can't check if console is "native" because it would appear "native" in JSC and Hermes.
// We also can't check any properties that don't exist in the Chrome worker environment.
// So we check a navigator property that's set to a particular value ("Netscape") in all real browsers.
Expand Down
27 changes: 0 additions & 27 deletions packages/react-native/Libraries/JSInspector/InspectorAgent.js

This file was deleted.

33 changes: 0 additions & 33 deletions packages/react-native/Libraries/JSInspector/JSInspector.js

This file was deleted.

296 changes: 0 additions & 296 deletions packages/react-native/Libraries/JSInspector/NetworkAgent.js

This file was deleted.

Loading

0 comments on commit 48283e4

Please sign in to comment.