Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
World desk5 min

How to View and Use Cypress Logs

Use Cypress open mode to inspect commands and snapshots, DevTools for yielded values, terminal DEBUG namespaces for process diagnostics, and run artifacts for recorded evidence.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To inspect Cypress test activity, run npx cypress open and use the Test Runner’s Command Log; for Cypress startup or process diagnostics, set a targeted DEBUG namespace in the terminal. Browser DevTools, screenshots, videos, and Cypress Cloud Test Replay provide other evidence depending on where a failure occurs.

View commands and snapshots in Cypress open mode

  1. From your project directory, run npx cypress open, open the relevant spec, and run or select a test.
  2. Use the Command Log in the Test Runner to follow commands and hooks in order. Expand a test to see its command entries, including setup and teardown hooks.
  3. Hover over a command to return the application preview to the state captured for that command. Cypress documents a default buffer of 50 tests’ worth of snapshots and command data. See Cypress open mode.

The Command Log also shows page events such as XHR and fetch requests, hash changes, page loads, and form submissions. If requests clutter the display, use the “Show HTTP Requests” toggle to hide those entries. This changes what is shown in the log; requests still execute and remain available to assertions and tools such as cy.intercept().

As an Amazon Associate I earn from qualifying purchases.

Inspect a command in browser DevTools

Keep the browser’s Developer Tools open and click a Command Log entry. Cypress writes structured details to the browser console, such as the command issued, its yielded value, elements found, and selector used. This can show what a query or action received without adding temporary logging to the test.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For a failing command, read the error, code frame, and stack trace in the Runner, then inspect the surrounding Command Log entries. Cypress’s debugging guide recommends using browser developer tools alongside the Cypress interface; source maps help relate stack traces to project source files.

Check timing failures against the command sequence

If a test appears timing-sensitive, verify that the required network response or DOM state is ready before the assertion runs. Prefer synchronizing with the relevant request or state—using aliases where appropriate—rather than adding arbitrary delays. The order and snapshots in the Command Log can help identify where the expected state diverged.

Add structured details for custom commands

Cypress.log() controls entries created for custom commands. Its consoleProps option supplies structured details shown in DevTools when the entry is clicked; autoEnd: false is available when a command completes asynchronously. See the Cypress.log() API.

Be deliberate about what you return through consoleProps. Cypress examples include response bodies, user IDs, session tokens, and form values; avoid logging secrets or sensitive user data.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Enable Cypress terminal debug logs

Set DEBUG before launching Cypress. For broad diagnostics on macOS, Linux, or Windows Git Bash with npm, run:

DEBUG=cypress:* npx cypress run

Use npx cypress open in place of run when diagnosing startup while opening the Specs UI. The full cypress:* namespace can produce a large volume of output and affect performance, so enable it only as needed and narrow it to the subsystem involved. Examples documented by Cypress include:

  • DEBUG=cypress:server:project for project opening.
  • DEBUG=cypress:server:browsers* for browser detection.
  • DEBUG=cypress:server:reporter for reporter issues.
  • DEBUG=cypress:server:video for video recording.

Namespaces can be combined with commas; a leading hyphen excludes a noisy source. Cypress lists equivalent environment-variable forms for Yarn, pnpm, and Bun in its Troubleshooting: Cypress App guide. For Windows CMD, set the variable before the Cypress command:

set DEBUG=cypress:*

In PowerShell, use:

$env:DEBUG='cypress:*'

Turn on browser-side Cypress driver logs

Terminal DEBUG output is distinct from Cypress driver logs running in the browser. If the issue occurs inside the browser during cypress open, open DevTools and enter this in its console:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
localStorage.debug = 'cypress*'

Reload the page, then enable Verbose messages in the console. This exposes browser-side cypress:driver logs. The steps and namespace details are in Cypress’s troubleshooting guide.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Find screenshots, videos, and recorded-run evidence

  • Manual screenshot: call cy.screenshot() in either cypress open or cypress run.
  • Failure screenshot: cypress run captures these by default; cypress open does not automatically capture them. The default directory is cypress/screenshots. Configuration can change the directory or disable failure screenshots.
  • Video: Cypress can record a video for each spec during cypress run when video recording is enabled.
  • Test Replay: for recorded Cypress Cloud runs, Test Replay lets you replay execution with debugging capability. It requires a recorded run and applicable Cloud access.

These are complementary evidence, not substitutes for inspecting the command sequence. See Capture screenshots and videos in Cypress and open mode.

Isolate slowdowns related to the Command Log

Cypress documents cases where the Command Log can contribute to slow tests or browser crashes. As a diagnostic experiment, disable it for a run:

CYPRESS_NO_COMMAND_LOG=1 npx cypress run

The CLI also supports --no-runner-ui to hide the full Runner UI during a run. When the Command Log is disabled, screenshots and videos will not include it, so use this as an isolation step rather than a routine logging setup. See the Cypress troubleshooting guide and CLI command reference.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Troubleshoot logs that are missing or unhelpful

  • No terminal debug output: confirm the environment variable was set in the shell that launches Cypress and that the assignment syntax matches that shell. Check whether permissions affect the process.
  • Too much output or a slower run: replace DEBUG=cypress:* with the narrowest relevant namespace, then turn debugging off when finished.
  • Need details for a command’s input or result: use open mode, keep DevTools open, and click the corresponding Command Log entry.
  • Browser driver issue, but no useful Node-side logs: enable localStorage.debug = 'cypress*', reload, and show Verbose console messages.
  • Failure screenshot absent: automatic failure screenshots apply to cypress run, not open mode. Check screenshot configuration and the configured output directory.
  • Command Log may be involved in a slowdown or crash: try CYPRESS_NO_COMMAND_LOG=1 or --no-runner-ui to isolate the effect, accounting for the loss of the log in screenshots and videos.

Or skip the browser setup

If the problem is capturing a web page itself rather than debugging Cypress command execution, ScreenshotNeo offers a screenshot API and MCP server. A single GET request can return an image or PDF; see the API documentation.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

ScreenshotNeo accepts cookie or consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers identify the page verdict and billing status. Its MCP server lets AI agents use screenshot, page-info, and PDF-capture tools. The free plan includes 1,000 screenshots a month without a card; paid plans start at $5 for 3,000.

Sign up for ScreenshotNeo’s free plan.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.