Quickstart Guide
Get your application monitored with DebugX in less than 5 minutes. Follow these simple steps or use our AI setup prompt.
AI Installation Prompt
The Fastest Way to Setup
Paste this prompt into Cursor, ChatGPT, or Claude to have the AI automatically install and configure DebugX in your codebase.
"Help me install and configure @debugx/next in my Next.js application. I want to automatically capture all server-side and client-side errors, analyze them with AI, and see suggested fixes in my DebugX dashboard."
Install the SDK
Add the DebugX client to your project using your preferred package manager.
$npm install @debugx/nextInitialize DebugX
Configure the SDK at the root of your application (usually in `layout.tsx` or `_app.js`).
DebugX.init({
apiKey: 'your_api_key_here',
environment: 'production'
});
Verify Connection
Trigger a test error to see it appear on your dashboard in real-time.
DebugX.captureException(new Error("DebugX connection test successful!"));
You're all set!
DebugX is now monitoring your application. Any unhandled exceptions will be automatically captured with full stack traces and context.