-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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.
You can now use the DOM inspector and some of the other devtools.
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.
