-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Debugging Brave UI
Ross Moody edited this page Dec 15, 2018
·
5 revisions
You can use the Chrome remote developer tools to debug aura UI views (only available to Windows, Linux and ChromeOS).
-
cdtosrc/out/Debug - Run
brave.exe --enable-ui-devtoolsThis will start Brave with the UiDevToolsClient flag enabled. -
cdto the application folder of Chromium or Chrome. Note: This can not be a stable release of Chrome. UI Devtools are not available in stable releases of Chrome any longer. - Run
chromium-browser.exe --enable-ui-devtoolsThis will start Chromium with the UiDevToolsClient flag enabled. - In the Chromium browser, type
chrome://inspectinto the URL bar. - Click on the
Othertab and in the section entitled "UiDevToolsClient" click on theinspectlink. Note: Brave typically crashes upon clicking theinspectbutton the first time. Re-run step 2 and the Web Socket should automatically reconnect in Chromium. - From the Chromium devtools panel, you can now navigate through the DOM on Brave UI.
- https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/eHeHP4RuvC0
- https://www.chromium.org/developers/how-tos/inspecting-ash
You can also pass --enable-ui-devtools=<port> if you want to use a different port.
You can see each View widget's bounds by passing --draw-view-bounds-rects.
