# AI Debugger

{% hint style="info" %}
AI Debugger is powered by OpenAI and integrated directly into your Jam bug reports. It's completely opt-in and respects your data privacy. No models are trained with your data.
{% endhint %}

{% embed url="<https://www.youtube.com/watch?v=tyFVIhLnmfY>" %}

### Overview

AI Debugger analyzes your Jam bug reports and provides targeted debugging assistance. Using the complete browser context from your Jam – including logs, network requests, device data, and session replays. It identifies root causes and suggests specific fixes to get you back to building faster.

### Key Benefits

* **Skip the research:** Get potential causes and solutions without diving into Stack Overflow
* **Fix code instantly:** Send broken code and receive working, rewritten versions
* **Handle any framework:** Works with JavaScript frameworks, CSS libraries, and responsive design issues
* **Interactive debugging:** Chat interface lets you refine suggestions based on your findings
* **Control detail level:** Switch between verbose explanations and quick summaries

### How It Works

AI Debugger leverages the comprehensive technical context that Jam automatically captures:

* **Session replays** showing exact user interactions
* **Console logs** with errors and warnings
* **Network requests** including failed API calls
* **Device information** and browser specifications

This complete picture allows AI Debugger to provide more accurate suggestions than generic debugging tools.

#### Core Capabilities

{% tabs %}
{% tab title="Root Cause Analysis" %}
**Identify Issues Fast**\
AI Debugger analyzes your Jam's complete technical context to suggest potential causes, eliminating guesswork and reducing time spent searching for solutions.
{% endtab %}

{% tab title="Code Fixing" %}
**Rewrite Broken Code**\
Send your problematic code to AI Debugger and get back working, bug-free versions that address the specific issues identified in your Jam.
{% endtab %}

{% tab title="CSS & Design Issues" %}
**Resolve Visual Problems**\
Whether it's responsive design breakpoints or styling conflicts, AI Debugger understands CSS and can rewrite your styles to fix visual issues.
{% endtab %}

{% tab title="Interactive Chat" %}
**Refine Solutions**\
Use the chat interface for back-and-forth debugging discussions. Provide additional context or ask follow-up questions to get more targeted suggestions.
{% endtab %}
{% endtabs %}

### Getting Started

#### Access AI Debugger

1. Open any Jam bug report
2. Look for the AI Debugger option in the interface
3. Click "Yes" when prompted to opt-in to AI analysis
4. AI Debugger will analyze your Jam's technical context and provide suggestions

#### Customize Output Detail

Switch between verbose and concise modes based on your needs:

* Verbose mode: Detailed explanations and comprehensive solutions
* Concise mode: Quick summaries and direct action items

#### Data Privacy

{% hint style="warning" %}
Your Privacy is Protected\
AI Debugger is completely opt-in. Your data only reaches OpenAI's API when you explicitly choose to use the feature. OpenAI does not use customer API data to train their models.
{% endhint %}

#### Privacy Safeguards:

* Opt-in only no automatic data sharing
* OpenAI API policy prohibits using customer data for model training
* You control when and which Jams get AI analysis

### FAQs

<details>

<summary>Is my data used to train AI models?</summary>

No. OpenAI has a [strict API policy](https://openai.com/policies/api-data-usage-policies) that prohibits using customer data submitted through their API to train or improve their models. Your debugging data remains private and is only used to provide you with suggestions.

</details>

<details>

<summary>What data does AI Debugger analyze?</summary>

AI Debugger uses the same technical context that Jam captures: session replays, console logs, network requests, device information, and any additional details in your bug report.

</details>

<details>

<summary>Can I use AI Debugger without sharing data externally?</summary>

No. AI Debugger requires sending your Jam's technical context to OpenAI's API to provide analysis and suggestions. This is completely opt-in. You choose each time whether to use the feature. No models are trained on your data.&#x20;

</details>

<details>

<summary>Does AI Debugger work with my specific tech stack?</summary>

Yes. AI Debugger adapts to different JavaScript frameworks, CSS libraries, and development environments. It uses the actual context from your browser session to provide relevant suggestions.

</details>

<details>

<summary>How accurate are the debugging suggestions?</summary>

AI Debugger provides educated suggestions based on your complete browser context, but you should always review and test any code changes. Think of it as an experienced debugging partner, not an automated fix.

</details>
