---
updatedAt: 2026-05-21T21:08:43.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/powershell/llms.txt
---

# ESI debugger

New-EdgeDiagnosticsESIDebug

## Synopsis

Get an ESI debugging report.

## Syntax

```powershell Attributes (Default)
New-EdgeDiagnosticsESIDebug -URL <String> [-ClientIP <String>] [-ClientRequestHeaders <String[]>] [-OriginServer <String>] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```
```powershell Body
New-EdgeDiagnosticsESIDebug -Body <Object> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## Description

Gets a debugging report on the ESI code of your source page and all pages that the source page references.

## Parameters

<table>
  <tbody>
    <tr>
      <td class="ps-td"><code>&#8209;AccountSwitchKey</code></td>
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata">String</span>
          <span class="ps-param-metadata">Pipeline input: False</span>
        </div>
        <div>
          <p>An account credential key that lets you move between accounts when using an API client enabled for multiple accounts. To find account switch keys, use <a href="https://techdocs.akamai.com/powershell/docs/get-accountswitchkey">Get-AccountSwitchKey</a>.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td class="ps-td"><code>&#8209;Body</code><br/><span style="color: red; padding-left: 11px; font-size: 13px;"><em>Conditionally required</em></span></td>
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata">Object</span>
          <span class="ps-param-metadata">Parameter sets: <code>Body</code></span>
          <span class="ps-param-metadata">Pipeline input: ByValue</span>
        </div>
        <div>
          <p>Request body, either as a PSCustomObject or string. This parameter supports pipelining.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td class="ps-td"><code>&#8209;ClientIP</code></td>
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata">String</span>
          <span class="ps-param-metadata">Parameter sets: <code>Attributes</code></span>
          <span class="ps-param-metadata">Pipeline input: False</span>
        </div>
        <div>
          <p>A Client IP to filter the logs by.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td class="ps-td"><code>&#8209;ClientRequestHeaders</code></td>
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata">Switch</span>
          <span class="ps-param-metadata">Parameter sets: <code>Attributes</code></span>
          <span class="ps-param-metadata">Pipeline input: False</span>
        </div>
        <div>
          <p>Custom HTTP headers used in the client's requests.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td class="ps-td"><code>&#8209;EdgeRCFile</code></td>
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata">String</span>
          <span class="ps-param-metadata">Pipeline input: False</span>
        </div>
        <div>
          <p>Your EdgeGrid resource file to authenticate your command. Defaults to <code>~/.edgerc</code>.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td class="ps-td"><code>&#8209;OriginServer</code></td>
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata">String</span>
          <span class="ps-param-metadata">Parameter sets: <code>Attributes</code></span>
          <span class="ps-param-metadata">Pipeline input: False</span>
        </div>
        <div>
          <p>The test origin server where the edge server sends requests instead of the origin server.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td class="ps-td"><code>&#8209;Section</code></td>
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata">String</span>
          <span class="ps-param-metadata">Pipeline input: False</span>
        </div>
        <div>
          <p>The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to <code>default</code>.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td class="ps-td"><code>&#8209;URL</code><br/><span style="color: red; padding-left: 11px; font-size: 13px;"><em>Conditionally required</em></span></td>
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata">String</span>
          <span class="ps-param-metadata">Parameter sets: <code>Attributes</code></span>
          <span class="ps-param-metadata">Pipeline input: False</span>
        </div>
        <div>
          <p>A fully qualified URL you want to get the error statistics for. You need to provide either this value or a <code>-CPCode</code>.</p>
        </div>
      </td>
    </tr>
  </tbody>
</table>

## Related Links

* [User Guide: Edge Diagnostics](https://techdocs.akamai.com/powershell/docs/diagnose-content-delivery-issues)
* [API Reference](https://techdocs.akamai.com/edge-diagnostics/reference/post-debug)

# Sibling pages

* [Connectivity problems](https://techdocs.akamai.com/powershell/docs/new-edgediagnosticsconnectivityproblem.md)
* [Content problems](https://techdocs.akamai.com/powershell/docs/new-edgediagnosticscontentproblem.md)
* [cURL request](https://techdocs.akamai.com/powershell/docs/new-edgediagnosticscurl.md)
* [Diagnostic link](https://techdocs.akamai.com/powershell/docs/new-edgediagnosticslink.md)
* [DIG request](https://techdocs.akamai.com/powershell/docs/new-edgediagnosticsdig.md)
* [Error translation](https://techdocs.akamai.com/powershell/docs/new-edgediagnosticserrortranslation.md)
* [GREP request](https://techdocs.akamai.com/powershell/docs/new-edgediagnosticsgrep.md)
* [Metadata trace](https://techdocs.akamai.com/powershell/docs/new-edgediagnosticsmetadatatrace.md)
* [MTR request](https://techdocs.akamai.com/powershell/docs/new-edgediagnosticsmtr.md)
* [URL health check](https://techdocs.akamai.com/powershell/docs/new-edgediagnosticsurlhealthcheck.md)