Using the Network Monitor
The Network Monitor is one of your most powerful debugging tools. It shows all API calls made by your application.Accessing the Network Monitor
- Open your project in HelloLeo
- Click on the Network Monitor icon in the sidebar
- View all API requests and responses in real-time
What to Look For
- Failed requests - Red indicators show failed API calls
- Response codes - Check for 4xx (client errors) or 5xx (server errors)
- Request payloads - Verify the data being sent
- Response data - Check what the API is returning
- Timing - Identify slow API calls
Common Issues Found
- 401 Unauthorized - Invalid or expired API keys
- 403 Forbidden - Insufficient permissions
- 404 Not Found - Wrong endpoint or resource doesn’t exist
- 500 Server Error - Integration API issues
Browser Developer Tools
Use browser developer tools to debug frontend issues.Console Tab
Check for JavaScript errors:- Open browser DevTools (F12 or right-click → Inspect)
- Go to the Console tab
- Look for red error messages
- Click on errors to see stack traces
Network Tab
Monitor network requests:- Open the Network tab in DevTools
- Reload your page
- Filter by type (XHR, Fetch, etc.)
- Click on requests to see details
- Check request/response headers and bodies
Elements Tab
Inspect DOM structure:- Use the Elements tab to inspect HTML
- Check if components are rendering correctly
- Verify CSS classes and styles
- Test changes in real-time
Debugging Integration Issues
Test Integration Connection
Always test your integration connection first:- Go to Project Settings → Project Integrations
- Click Test Connection for your integration
- Review any error messages
- Verify credentials are correct
Check Integration Logs
Many integrations provide logs:- Check your integration’s dashboard for logs
- Look for API call logs
- Review error messages
- Check rate limit status
Verify API Endpoints
Ensure you’re using correct endpoints:- Review integration documentation
- Check endpoint URLs in Network Monitor
- Verify request methods (GET, POST, etc.)
- Confirm required headers are included
Debugging Code Issues
Share Errors with Leo
Use the “Share with Leo” feature:- Copy the error message
- Click Share with Leo button
- Leo will analyze the error
- Follow Leo’s suggestions
Check Code Syntax
Look for common syntax errors:- Missing brackets or parentheses
- Unclosed strings
- Incorrect imports
- Type mismatches
Review Recent Changes
If something broke:- Check what you changed recently
- Review git history if available
- Test reverting changes
- Identify the specific change that caused the issue
Debugging Performance Issues
Identify Slow Operations
- Use Network Monitor to find slow API calls
- Check browser DevTools Performance tab
- Look for long-running JavaScript
- Identify bottlenecks
Optimize API Calls
- Reduce requests - Combine multiple requests when possible
- Use pagination - Don’t fetch all data at once
- Cache data - Store frequently accessed data
- Debounce searches - Limit search API calls
Check Build Times
Monitor build performance:- Check build logs for timing information
- Identify slow build steps
- Review dependencies
- Consider optimizing build configuration
Common Debugging Patterns
Integration Not Working
- ✅ Test connection
- ✅ Check Network Monitor for API calls
- ✅ Verify credentials
- ✅ Review integration documentation
- ✅ Check API rate limits
Data Not Displaying
- ✅ Check Network Monitor for API responses
- ✅ Verify data exists in integration
- ✅ Review filters/search criteria
- ✅ Check field names match
- ✅ Verify permissions
Code Not Working
- ✅ Check browser console for errors
- ✅ Review code syntax
- ✅ Verify imports and dependencies
- ✅ Test in isolation
- ✅ Share error with Leo
Best Practices
Keep Error Messages Visible
- Don’t hide error messages
- Display user-friendly error messages
- Log errors for debugging
- Provide actionable error messages
Use Logging
Add console logs for debugging:Test Incrementally
- Test after each change
- Don’t make multiple changes at once
- Verify each feature works
- Build up complexity gradually
Document Issues
When reporting issues:- Include error messages
- Provide steps to reproduce
- Share relevant code snippets
- Include Network Monitor screenshots
Getting More Help
If debugging doesn’t solve your issue:- Share with Leo - Get AI-powered debugging help
- Network Monitor - Capture and share API call details
- Error Messages - Copy full error messages
- Support Channels - Reach out to our community
