react/packages/react-devtools-fusebox
Sebastian Markbåge 142fd27bf6
[DevTools] Add Option to Open Local Files directly in External Editor (#33983)
The `useOpenResource` hook is now used to open links. Currently, the
`<>` icon for the component stacks and the link in the bottom of the
components stack. But it'll also be used for many new links like stacks.
If this new option is configured, and this is a local file then this is
opened directly in the external editor. Otherwise it fallbacks to open
in the Sources tab or whatever the standalone or inline is configured to
use.

<img width="453" height="252" alt="Screenshot 2025-07-24 at 4 09 09 PM"
src="https://github.com/user-attachments/assets/04cae170-dd30-4485-a9ee-e8fe1612978e"
/>

I prominently surface this option in the Source pane to make it
discoverable.

<img width="588" height="144" alt="Screenshot 2025-07-24 at 4 03 48 PM"
src="https://github.com/user-attachments/assets/0f3a7da9-2fae-4b5b-90ec-769c5a9c5361"
/>

When this is configured, the "Open in Editor" is hidden since that's
just the default. I plan on deprecating this button to avoid having the
two buttons going forward.

Notably there's one exception where this doesn't work. When you click an
Action or Event listener it takes you to the Sources tab and you have to
open in editor from there. That's because we use the `inspect()`
mechanism instead of extracting the source location. That's because we
can't do the "throw trick" since these can have side-effects. The Chrome
debugger protocol would solve this but it pops up an annoying dialog. We
could maybe only attach the debugger only for that case. Especially if
the dialog disappears before you focus on the browser again.
2025-07-25 10:16:43 -04:00
..
src [DevTools] Add Option to Open Local Files directly in External Editor (#33983) 2025-07-25 10:16:43 -04:00
package.json [DevTools] Check in frontend.d.ts for react-devtools-fusebox, include in build output (#28970) 2024-05-03 17:32:41 +01:00
README.md feat[devtools]: add package for fusebox integration (#28553) 2024-04-12 15:29:35 +01:00
webpack.config.frontend.js [mcp] Add MCP tool to print out the component tree of the currently open React App (#33305) 2025-06-02 21:42:34 -07:00

react-native-fusebox

This package is private and not expected to become public anytime soon. Consider using react-devtools-inline or react-devtools-core.

What is Fusebox?

"Fusebox" is the internal codename for the new React Native debugger stack based on Chrome DevTools.