Skip to content

Commit

Permalink
Added widget debug guide
Browse files Browse the repository at this point in the history
  • Loading branch information
dduhovic committed Feb 21, 2024
1 parent c5841cf commit 2cee99a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions content/widgets/5_widget_debugging.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
title: Widget Debugging
excerpt: "Debugging @brinkninja/widgets"
slug: widgets/debugging
category: 65ca4e8f54dda9007a445556
---

The @brinkninja/widgets comes with a debugging mode that allows you to see additional values and information for debugging purposes. To enable debug mode, simply add `?brinkwidget=debug` to the URL of the web page where the widget is embedded.

## Enabling Debug Mode

Simply add `?brinkwidget=debug` to the URL. After that, the widget will enter debug mode, displaying additional values and information.

## Example

For example, if your web page URL is **https://example.com** and the widget is embedded in the **/page** route.

Debug mode would be enabled like this:
```bash
https://example.com/page?brinkwidget=debug
```

## Debug Mode View List

Debug mode currently shows additional values and information in these views:
- "My Swaps" view

### My Swaps
Enabling debug mode shows an additional dots button where you can see the intent hash.

![myswapsdebugg](https://raw.githubusercontent.com/brinktrade/guides/main/assets/myswapsdebugg.png)


0 comments on commit 2cee99a

Please sign in to comment.