How to collect browser console and network logs for troubleshooting

  • Updated

If you’re asked to collect logs from the Phantom extension, you can do so by using your browser’s developer tools. Follow the instructions below to capture either Console or Network output. You’ll need to share these logs with the Support team to help them troubleshoot your issue.

Before you begin

Use a Chromium-based browser like Chrome, Edge, or Brave.

Collect console output

  1. Open a new tab and go to chrome://extensions/
  2. Find the Phantom extension and click Details.
  3. Turn on Developer mode in the upper-right corner.
  4. Under Inspect views, click service worker.
  5. In the new DevTools window, click the Console tab.
  6. Click the Clear button (🚫) to remove any previous logs.
  7. Reproduce the issue.
  8. After reproducing the issue, right-click inside the Console and select Save as… to export a LOG file.
  9. Share this file with the Phantom Support team.
  10. Return to chrome://extensions/ and turn Developer mode off.
devtools-console.png

Collect Network logs

  1. Go to chrome://extensions/
  2. Find the Phantom extension and click Details.
  3. Turn on Developer mode in the upper-right corner.
  4. Under Inspect views, click service worker.
  5. In the DevTools window, click the Network tab.
  6. Click the Clear button (🚫) to remove any previous logs.
  7. Reproduce the issue.
  8. After reproducing the issue, click the Export HAR button (pictured) and to export a HAR file.
  9. Share this file with the Phantom Support team.
  10. Return to chrome://extensions/ and turn Developer mode off.
devtools-network.png

If logs don’t appear

If the Console or Network tabs under popup.html show no activity, try right-clicking anywhere inside the Phantom extension’s interface (like the Swap tab) and select Inspect. This opens another DevTools window tied to that specific UI, which should show logs in real time.

Was this article helpful?

4 out of 11 found this helpful
Can't find what you're looking for?

Start a chat