Debugging Cypress Tests

cy.visit("/")
  .get("something")
  .click()
  .then((subject) => {
    debugger;
    return subject;
  });
if (window.Cypress) {
  // do stuff that only executes in Cypress here
}