t.debug Method
Pauses the test for debugging purposes. Chainable.
t.debug([Selector]) → this | Promise<any>
The t.debug
method pauses the test. When the test is paused, you can use the Visual Selector Debugger, or debug the page with your browser’s developer tools.
If you pass a Selector query to the method, TestCafe automatically populates the input field of the Visual Selector Debugger, and highlights DOM elements that match the query.
Note
Use the --debug-mode command line option to pause the test before the first action or assertion.