You can use the Chrome remote developer tools to debug aura UI views (only available to Windows, Linux and ChromeOS).
cd
tosrc/out/Debug
- Run
brave.exe --enable-ui-devtools
This will start Brave with the UiDevToolsClient flag enabled. cd
to 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-devtools
This will start Chromium with the UiDevToolsClient flag enabled. - In the Chromium browser, type
chrome://inspect
into the URL bar. - Click on the
Other
tab and in the section entitled "UiDevToolsClient" click on theinspect
link. Note: Brave typically crashes upon clicking theinspect
button 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
.