User GuidesΒΆ
Welcome to the RapidTriageME user guides! This section provides comprehensive tutorials, best practices, and advanced techniques for getting the most out of your AI-powered browser debugging platform.
Guide CategoriesΒΆ
graph TB
subgraph "Getting Started"
SETUP[π IDE Integration]
CONFIG[βοΈ Configuration]
end
subgraph "Core Skills"
DEBUG[π Debugging Techniques]
PERF[π Performance Optimization]
end
subgraph "Advanced Topics"
SECURITY[π Security & Privacy]
AUTOMATION[π€ AI Automation]
end
subgraph "Best Practices"
WORKFLOWS[π Workflows]
TIPS[π‘ Pro Tips]
end
SETUP --> DEBUG
CONFIG --> PERF
DEBUG --> SECURITY
PERF --> AUTOMATION
SECURITY --> WORKFLOWS
AUTOMATION --> TIPS
style SETUP fill:#e8f5e8
style DEBUG fill:#e1f5fe
style SECURITY fill:#fce4ec
style WORKFLOWS fill:#fff3e0
Available GuidesΒΆ
-
π IDE Integration
Set up RapidTriageME with your favorite IDE or AI assistant
-
π Debugging Techniques
Master browser debugging with AI assistance
-
π Performance Optimization
Optimize web performance using Lighthouse and AI insights
-
π Security & Privacy
Secure your debugging setup and protect sensitive data
Quick Start WorkflowsΒΆ
1. Basic Debugging WorkflowΒΆ
flowchart LR
A[π Open Website] --> B[π Encounter Issue]
B --> C[π€ Ask AI Assistant]
C --> D[πΈ Take Screenshot]
D --> E[π Check Console Logs]
E --> F[π Analyze Network]
F --> G[β
Identify Solution]
style A fill:#e3f2fd
style G fill:#c8e6c9
Example Commands:
1. "Take a screenshot of this page"
2. "Show me all console errors"
3. "What network requests are failing?"
4. "Run a performance audit"
2. Performance Analysis WorkflowΒΆ
flowchart TD
START[π Performance Issue] --> LIGHTHOUSE[π Run Lighthouse Audit]
LIGHTHOUSE --> METRICS[π Analyze Core Web Vitals]
METRICS --> OPPORTUNITIES[π Identify Opportunities]
OPPORTUNITIES --> IMPLEMENT[βοΈ Implement Fixes]
IMPLEMENT --> VERIFY[β
Verify Improvements]
style START fill:#ffecb3
style VERIFY fill:#c8e6c9
AI Prompts:
1. "Run a comprehensive Lighthouse audit"
2. "Analyze the Core Web Vitals scores"
3. "What are the biggest performance opportunities?"
4. "Help me optimize the largest contentful paint"
3. Error Investigation WorkflowΒΆ
sequenceDiagram
participant Dev as π¨βπ» Developer
participant AI as π€ AI Assistant
participant RT as π§ RapidTriageME
participant Browser as π Browser
Dev->>AI: "Something is broken on this page"
AI->>RT: Check console logs
RT->>Browser: Fetch console data
Browser-->>RT: Error logs
RT-->>AI: Formatted errors
AI->>RT: Take screenshot
RT->>Browser: Capture screen
Browser-->>RT: Screenshot data
RT-->>AI: Visual context
AI-->>Dev: Analysis + recommendations
Common Use CasesΒΆ
Frontend DevelopmentΒΆ
Task | AI Command | Expected Outcome |
---|---|---|
Debug layout issues | "Take a screenshot and analyze the layout" | Visual debugging with recommendations |
Fix JavaScript errors | "Show me all console errors and their stack traces" | Detailed error analysis |
Optimize loading | "Run performance audit and suggest improvements" | Performance optimization plan |
Test responsiveness | "Capture mobile and desktop views" | Cross-device comparison |
QA TestingΒΆ
Task | AI Command | Expected Outcome |
---|---|---|
Accessibility testing | "Run accessibility audit and check WCAG compliance" | Accessibility report |
Cross-browser testing | "Document any browser-specific issues" | Compatibility analysis |
Performance regression | "Compare current performance with baseline" | Performance comparison |
Error monitoring | "Monitor for errors during test scenarios" | Real-time error tracking |
DevOps & MonitoringΒΆ
Task | AI Command | Expected Outcome |
---|---|---|
Production debugging | "Analyze production errors and suggest fixes" | Root cause analysis |
Performance monitoring | "Track Core Web Vitals over time" | Performance trends |
Security scanning | "Check for security best practices" | Security audit |
SEO optimization | "Analyze SEO factors and suggest improvements" | SEO recommendations |
Best PracticesΒΆ
π Documentation PracticesΒΆ
-
Screenshot Everything Important
-
Capture Context
-
Save Audit Results
π€ AI Interaction TipsΒΆ
- Be Specific
- Good: "Show errors from the checkout process"
-
Better: "Show JavaScript errors that occurred in the last 2 minutes during checkout"
-
Provide Context
- "I'm seeing a blank page after login"
- "The mobile navigation isn't working on iOS"
-
"Performance degraded after latest deployment"
-
Ask Follow-up Questions
- "What could be causing this error?"
- "How can I fix this performance issue?"
- "Are there any security concerns here?"
π Workflow OptimizationΒΆ
-
Create Custom Commands
-
Set Up Monitoring Dashboards
- Configure regular performance audits
- Set up error alerts
-
Track key metrics automatically
-
Integrate with CI/CD
- Run automated audits on deployments
- Compare performance before/after changes
- Block deployments with critical issues
Advanced TechniquesΒΆ
Automated Testing with AIΒΆ
// Example: Automated accessibility testing
const auditResults = await rapidtriage.runAccessibilityAudit({
url: 'https://myapp.com',
standards: ['WCAG2A', 'WCAG2AA'],
includeScreenshot: true
});
// AI analysis
const analysis = await ai.analyze(`
Please review this accessibility audit and prioritize the issues:
${JSON.stringify(auditResults, null, 2)}
`);
Performance Regression DetectionΒΆ
// Track performance over time
const currentMetrics = await rapidtriage.runPerformanceAudit();
const baselineMetrics = loadBaseline('v1.2.0');
// AI comparison
const regression = await ai.compare(`
Compare these performance metrics and identify any regressions:
Current: ${JSON.stringify(currentMetrics)}
Baseline: ${JSON.stringify(baselineMetrics)}
`);
Custom Debugging WorkflowsΒΆ
// Create custom debugging sequence
class CustomDebugger {
async fullAnalysis(url) {
const results = {};
// Capture initial state
results.screenshot = await rapidtriage.captureScreenshot();
results.console = await rapidtriage.getConsoleLogs();
results.network = await rapidtriage.getNetworkRequests();
// Run audits
results.performance = await rapidtriage.runPerformanceAudit();
results.accessibility = await rapidtriage.runAccessibilityAudit();
results.seo = await rapidtriage.runSEOAudit();
// AI analysis
const analysis = await ai.analyze(`
Perform comprehensive analysis of this web page:
${JSON.stringify(results, null, 2)}
`);
return { raw: results, analysis };
}
}
Integration ExamplesΒΆ
With Testing FrameworksΒΆ
Jest IntegrationΒΆ
// test/debug.helper.js
const { RapidTriageClient } = require('@yarlisai/rapidtriage-client');
class DebugHelper {
constructor() {
this.client = new RapidTriageClient();
}
async debugOnFailure(testName, error) {
console.log(`π Debugging failed test: ${testName}`);
const screenshot = await this.client.captureScreenshot();
const logs = await this.client.getConsoleLogs({ level: 'error' });
// Save debug artifacts
fs.writeFileSync(`debug/${testName}-screenshot.png`, screenshot);
fs.writeFileSync(`debug/${testName}-logs.json`, JSON.stringify(logs));
return { screenshot, logs };
}
}
// Usage in tests
afterEach(async () => {
if (this.currentTest.state === 'failed') {
await debugHelper.debugOnFailure(this.currentTest.title, this.currentTest.err);
}
});
Cypress IntegrationΒΆ
// cypress/support/commands.js
Cypress.Commands.add('debugWithAI', (prompt) => {
cy.window().then(async (win) => {
// Capture state
const screenshot = await rapidtriage.captureScreenshot();
const logs = await rapidtriage.getConsoleLogs();
// Send to AI
const analysis = await ai.analyze(`
${prompt}
Screenshot and console logs are attached.
`);
cy.log('AI Analysis:', analysis);
});
});
// Usage
it('should debug login failure', () => {
cy.visit('/login');
cy.get('[data-testid=login-btn]').click();
cy.debugWithAI('Why did the login fail?');
});
Troubleshooting IntegrationΒΆ
If you encounter issues while following these guides:
- Check Prerequisites
- Ensure RapidTriageME is properly installed
- Verify browser extension is loaded
-
Confirm server is running on port 3025
-
Review Configuration
- Double-check IDE settings
- Verify environment variables
-
Test MCP connection
-
Get Help
- Check troubleshooting guide
- Join our Discord community
- Open an issue on GitHub
What's Next?ΒΆ
Choose the guide that matches your current needs:
- New to RapidTriageME? Start with IDE Integration
- Want to debug better? Check out Debugging Techniques
- Performance issues? Read Performance Guide
- Security concerns? Review Security Guide
These guides will help you master RapidTriageME and become more efficient at browser debugging with AI assistance.