Skip to content

Commit 3a4604c

Browse files
authored
Merge pull request #69 from gtardif/dev_debug_docs
Add doc for systematically opening chrome dev tools while developing a specific extension
2 parents e20d670 + 2dff4f7 commit 3a4604c

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

docs/dev/overview.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@ For further inspiration, have a look at the rest of examples in the root of this
1717
Once an extension is deployed and running, it is possible to open the Chrome Dev Tools from the UI extension part, using a variation of the [Konami Code](https://en.wikipedia.org/wiki/Konami_Code).
1818
Click on the extension tab, and then hit the key sequence `up, up, down, down, left, right, left, right, p, d, t`. That should open Dev Tools, and give access to the Chrome console, debugger, etc.
1919

20+
Or, if you want to systematically open the Chrome Dev Tools for your extension whitout typing a knoami code, you can run
21+
22+
```console
23+
docker extension dev debug my-extension
24+
```
25+
26+
Each click on the extension tab will then also open Chrome Dev Tools.
27+
You can stop this behaviour with
28+
29+
```console
30+
docker extension dev reset my-extension
31+
```
32+
2033
### Developing the Extension UI
2134

2235
If your extension has a UI you can see it directly inside Docker Desktop while developing it.
@@ -33,7 +46,7 @@ This will change the source of the extension UI to your local development server
3346

3447
Make sure to reopen the Dashboard when you set a new source for the extension's UI.
3548

36-
Once finished, you can reset the extension configuration to the original settings:
49+
Once finished, you can reset the extension configuration to the original settings (note htis will also reset opening chrome dev tools if you used `docker extension dev debug my-extension`):
3750

3851
```console
3952
docker extension dev reset my-extension

0 commit comments

Comments
 (0)