Skip to content

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

    IDE Integration Guide

  • πŸ” Debugging Techniques


    Master browser debugging with AI assistance

    Debugging Guide

  • πŸ“ˆ Performance Optimization


    Optimize web performance using Lighthouse and AI insights

    Performance Guide

  • πŸ”’ Security & Privacy


    Secure your debugging setup and protect sensitive data

    Security Guide

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ΒΆ

  1. Screenshot Everything Important

    "Take a screenshot before and after the fix"
    "Document the current state visually"
    

  2. Capture Context

    "Show console logs from the last 5 minutes"
    "Include network requests in the analysis"
    

  3. Save Audit Results

    "Run full audit and save results for comparison"
    "Track performance metrics over time"
    

πŸ€– AI Interaction TipsΒΆ

  1. Be Specific
  2. Good: "Show errors from the checkout process"
  3. Better: "Show JavaScript errors that occurred in the last 2 minutes during checkout"

  4. Provide Context

  5. "I'm seeing a blank page after login"
  6. "The mobile navigation isn't working on iOS"
  7. "Performance degraded after latest deployment"

  8. Ask Follow-up Questions

  9. "What could be causing this error?"
  10. "How can I fix this performance issue?"
  11. "Are there any security concerns here?"

πŸ”„ Workflow OptimizationΒΆ

  1. Create Custom Commands

    // VS Code settings.json
    {
      "rapidtriage.customCommands": {
        "full-debug": "Take screenshot, get console logs, run performance audit",
        "error-check": "Show all errors from the last 10 minutes",
        "mobile-test": "Capture mobile screenshot and check responsive design"
      }
    }
    

  2. Set Up Monitoring Dashboards

  3. Configure regular performance audits
  4. Set up error alerts
  5. Track key metrics automatically

  6. Integrate with CI/CD

  7. Run automated audits on deployments
  8. Compare performance before/after changes
  9. 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:

  1. Check Prerequisites
  2. Ensure RapidTriageME is properly installed
  3. Verify browser extension is loaded
  4. Confirm server is running on port 3025

  5. Review Configuration

  6. Double-check IDE settings
  7. Verify environment variables
  8. Test MCP connection

  9. Get Help

  10. Check troubleshooting guide
  11. Join our Discord community
  12. Open an issue on GitHub

What's Next?ΒΆ

Choose the guide that matches your current needs:


These guides will help you master RapidTriageME and become more efficient at browser debugging with AI assistance.