Skip to content
masterclass Buddy

Cypress · Method

cy.debug

cy.debug() pauses a Cypress test and logs the current subject for inspection in browser Developer Tools. It passes the subject through so the command chain can continue.

Last updated

Since
12.0.0

Syntax

.debug()  
.debug(options)  
cy.debug()  
cy.debug(options)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • .pause()
  • cy.log()
  • cy.screenshot()
  • Debugging

Source: cy.debug() | Cypress API Documentation. Checked 2026-11-03.