Use Case Guide

Test Error Boundaries

Simulate component crashes and test your fallback UIs instantly. No need to write 'throw new Error()' in your code.

The Problem

Verifying that your error boundaries correctly catch and display fallbacks usually requires temporarily adding buggy code to your source.

The DevConsole Solution

DevConsole allows you to select a component in the tree and force it to throw an error during the next render or event cycle.

Step-by-Step Implementation

Select a Component

Use the component picker to highlight the area of your app you want to 'break'.

Click 'Force Error'

Inject a runtime error into that component's next render.

Verify Handoff

Watch your Error Boundary catch the error and display the correct fallback UI.

Related Questions

Will it reload the page?

No, it's designed to test internal app recovery. If the error isn't caught, the page may crash as expected.

Can I simulate network errors?

Yes, you can also use DevConsole to force specific API calls to return 500 errors to test data-fetching boundaries.

Start Debugging Smarter

DevConsole is free during development. Join 5,000+ developers shipping better code.

Get Started Now