feat: Add zero-config Web Inspector for click-to-IDE functionality #4967
+1,161
−17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🔍 Add Zero-Config Web Inspector for Click-to-IDE
Summary
Adds a Web Inspector that lets developers Cmd+Shift+Click on any element in the browser and instantly jump to its source code in their IDE - with zero configuration required.
Demo
Changes
New Packages
packages/inspector/- WASM client + protocol typespackages/inspector-macros/- Stub#[inspector]attributeModified
packages/rsx/- Auto-injectdata-inspectorin debug buildspackages/web/- Auto-initialize inspector clientCargo.toml- Add workspace membersUsage
Before ❌
After ✅
Key Features
✅ Zero Config - No code changes needed
✅ Production Safe - Only
debug_assertions✅ IDE Agnostic - VSCode, Cursor, Windsurf, WebStorm
✅ Accurate - Proc macro spans
✅ Lightweight - 0 bytes in release
Performance
Why This Matters
Competitive Parity:
Dioxus Advantages:
Implementation
RSX Enhancement
Auto-Init
Safety
cfg(debug_assertions))Testing
Migration
Zero breaking changes! Completely opt-in.
Future
dx serveAsk
This brings Dioxus DX on par with React/Vue. Would love to get this merged!
Questions welcome!
Commit Message
PR Checklist
fcg/inspector