How do you debug in Cypress?

How do you debug in Cypress?

In the same run cycle as your application, your Cypress test code executes. This means you have access to the page’s code as well as the features provided by the browser, such as document, window, and debugger. Refer to this blog.