VS Code Extension
The Unhook VS Code extension provides seamless webhook monitoring and debugging directly within your development environment, eliminating the need to switch between your editor and external tools.Overview
The VS Code extension enables you to:- View webhook events in real-time within VS Code
- Inspect webhook payloads and responses
- Replay webhook events for testing
- Debug webhook issues without leaving your editor
- Collaborate with team members on webhook development
Installation
Install the extension from the VS Code marketplace:- Open VS Code
- Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
- Search for “Unhook”
- Click Install
Quick Start
-
Sign in to Unhook:
- Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
- Run “Unhook: Sign In”
- Follow the authentication flow
-
View webhook events:
- Open the Unhook sidebar (Unhook icon in the activity bar)
- See real-time webhook events as they arrive
-
Inspect and replay events:
- Click on any webhook event to view details
- Use the “Replay Event” button to resend the webhook
Features
Real-time Webhook Monitoring
Monitor webhook events as they happen without leaving your editor:Live Event Feed
See webhook events in real-time as they arrive from providers
Event Details
Inspect headers, payloads, and response data for each event
Status Tracking
Track success/failure status and response times
Provider Filtering
Filter events by provider (Stripe, GitHub, Clerk, etc.)
Webhook Event Inspection
Dive deep into webhook data with comprehensive inspection tools:Event Replay
Test your webhook handlers by replaying events:- Select an event from the sidebar
- Click “Replay Event” button
- Monitor the response in real-time
- Debug any issues with your webhook handler
Team Collaboration
Work seamlessly with your team on webhook development:- Shared webhook URLs: Use the same webhook URL across your team
- Real-time updates: See when team members are active
- Event sharing: Share specific events with team members for debugging
Configuration
Workspace Configuration
Create anunhook.yaml
file in your project root:
VS Code Settings
Configure the extension through VS Code settings:Environment Variables
Set configuration via environment variables:Usage Guide
Viewing Webhook Events
- Open the Unhook sidebar (click the Unhook icon in the activity bar)
- Browse events in the event list
- Click on an event to view details
- Use filters to find specific events
Inspecting Event Details
When you click on a webhook event, you’ll see:1
Event Information
- Event ID, provider, type, and timestamp
- Success/failure status and response time
2
Request Details
- HTTP method and URL
- Headers and request body
- Provider-specific metadata
3
Response Information
- HTTP status code
- Response headers and body
- Processing duration
Replaying Events
- Select an event from the sidebar
- Click “Replay Event” in the event details
- Monitor the replay in real-time
- Check your application logs for the replayed event
Debugging Failed Events
When webhooks fail, the extension helps you debug:Check Response Status
Check Response Status
Look at the HTTP status code returned by your endpoint
Review Error Messages
Review Error Messages
Check the response body for error details
Verify Headers
Verify Headers
Ensure your endpoint is handling required headers correctly
Test Locally
Test Locally
Use the replay feature to test your endpoint with the same payload
Integration Examples
Stripe Webhooks
GitHub Webhooks
Clerk Authentication
Advanced Features
Custom Event Filtering
Filter events by various criteria:- Provider: Filter by Stripe, GitHub, Clerk, etc.
- Status: Show only successful or failed events
- Time range: Filter by recent events
- Event type: Filter by specific event types
Event Export
Export webhook events for analysis:- Select events in the sidebar
- Right-click and choose “Export Events”
- Choose format (JSON, CSV)
- Download the exported file
Performance Monitoring
Track webhook performance metrics:- Response times: Monitor how fast your endpoints respond
- Success rates: Track webhook delivery success
- Error patterns: Identify common failure causes
Troubleshooting
Common Issues
Extension Not Loading
Extension Not Loading
- Restart VS Code
- Check if the extension is properly installed
- Verify you’re signed in to Unhook
No Events Showing
No Events Showing
- Verify your webhook is active
- Check your webhook URL is correctly configured
- Ensure you have the correct permissions
Authentication Issues
Authentication Issues
- Sign out and sign back in
- Check your internet connection
- Verify your Unhook account is active
Replay Not Working
Replay Not Working
- Check your local server is running
- Verify the endpoint URL is correct
- Check your server logs for errors
Debug Mode
Enable debug mode for detailed logging:- Open Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
- Run “Developer: Toggle Developer Tools”
- Check the Console tab for extension logs
Best Practices
- Keep the sidebar open: Monitor webhooks while coding
- Use event replay: Test your handlers with real data
- Filter events: Focus on relevant events for your development
- Export for analysis: Save important events for later review
- Collaborate with team: Share events for debugging sessions
Keyboard Shortcuts
Action | Windows/Linux | macOS |
---|---|---|
Open Unhook sidebar | Ctrl+Shift+U | Cmd+Shift+U |
Refresh events | Ctrl+R | Cmd+R |
Replay selected event | Ctrl+Shift+R | Cmd+Shift+R |
Export events | Ctrl+Shift+E | Cmd+Shift+E |
Next Steps
- CLI Tool - Command line webhook testing
- Team Collaboration - Work with your team
- Provider Integrations - Connect with services
- MCP Integration - AI-powered webhook debugging