docs(debug): add instructions for debugging tests using Chrome DevTools (#35394)

This commit is contained in:
Max Schmitt 2025-03-28 10:50:18 +01:00 committed by GitHub
parent 8896454cdf
commit 2c0e1e5e3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -44,6 +44,10 @@ A browser window will open and the test will run and pause at where the breakpoi
<img width="1269" alt="running test in debug mode" src="https://user-images.githubusercontent.com/13063165/212740233-3f278825-13e7-4a88-a118-dd4478d43a16.png" />
### Debug Tests Using Chrome DevTools
Instead of using `Debug Test`, choose `Run Test` in VS Code. With `Show Browser` enabled, the browser session is reused, letting you open Chrome DevTools for continuous debugging of your tests and the web application.
### Debug in different Browsers
By default, debugging is done using the Chromium profile. You can debug your tests on different browsers by right clicking on the debug icon in the testing sidebar and clicking on the 'Select Default Profile' option from the dropdown.