Skip to content

Enable DevTools inspector on Windows and Linux#73

Open
samarthpatel24 wants to merge 2 commits into
vercel-labs:mainfrom
samarthpatel24:feature/devtools-inspector
Open

Enable DevTools inspector on Windows and Linux#73
samarthpatel24 wants to merge 2 commits into
vercel-labs:mainfrom
samarthpatel24:feature/devtools-inspector

Conversation

@samarthpatel24

Copy link
Copy Markdown

Summary

Enable DevTools inspector on Windows (WebView2) and Linux (WebKitGTK) to match the existing macOS experience.

  • F12 and Ctrl+Shift+I toggle the inspector window
  • Right-click "Inspect Element" works on all webviews (main + child)
  • Always enabled, no config or env vars needed

What changed

Windowsput_AreDevToolsEnabled(TRUE) on each webview's settings, F12/Ctrl+Shift+I in the accelerator key handler calls OpenDevToolsWindow().

Linuxwebkit_settings_set_enable_developer_extras on each webview, F12/Ctrl+Shift+I in the shortcut handler toggles webkit_web_inspector_show/close.

build.zig — file-contains check verifying the DevTools patterns exist in both platform hosts.

Test plan

  • scripts/gate.sh fast passes (all steps green)
  • On Windows: press F12, verify DevTools opens. Press again, verify it focuses. Ctrl+Shift+I works the same. Right-click shows "Inspect Element".
  • On Linux: press F12, verify DevTools opens. Press again, verify it closes. Ctrl+Shift+I works the same. Right-click shows "Inspect Element".

Closes #50

F12 and Ctrl+Shift+I open the browser DevTools on both platforms,
matching the existing macOS Cmd+Option+I behavior. Right-click
"Inspect Element" is also enabled. No configuration required.
@vercel

vercel Bot commented Jul 9, 2026

Copy link
Copy Markdown

@samarthpatel24 is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

Comment thread src/platform/linux/gtk_host.c
Connect the open-window signal so inspector_open tracks opens
from right-click "Inspect Element", not just the keyboard shortcut.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to open the developer debugging tool?

1 participant