You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dwds/debug_extension/CONTRIBUTING.md
+29-4Lines changed: 29 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,13 +11,38 @@ pub run build_runner build web -o build -r
11
11
```
12
12
pub run build_runner build web -o build
13
13
```
14
+
## Local Development
15
+
16
+
### Update `manifest.json`:
17
+
18
+
* Change the `default_icon` in `manifest.json` to `dart_dev.png` (Note: this is not strictly necessary, but will help you to distinguish your local version of the extension from the published version)
19
+
*[For Googlers] The developer key is needed for local development and testing. Add one of the whitelisted keys to `web/manifest.json`. IMPORTANT: DO NOT COMMIT THE KEY.
20
+
21
+
```
22
+
{
23
+
"name": "Dart Debug Extension",
24
+
"key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
25
+
...
26
+
}
27
+
```
28
+
29
+
### Build and upload your local extension
30
+
31
+
* Build the extension following the instructions above
32
+
* Visit chrome://extensions
33
+
* Toggle "Developer mode" on
34
+
* Click the "Load unpacked" button
35
+
* Select the extension directory: `/dwds/debug_extension/build/web`
36
+
37
+
### Debug your local extension
38
+
* Click the Extensions puzzle piece, and pin the Dart Debug Extension with the dev icon (unpin the published version so you don't confuse them)
39
+
* You can now use the extension normally by clicking it when a local Dart web application has loaded in a Chrome tab
40
+
* To debug, visit chrome://extensions and click "Inspect view on background page" to open Chrome DevTools for the extension
41
+
* More debugging information can be found in the [Chrome Developers documentation](https://developer.chrome.com/docs/extensions/mv3/devguide/)
42
+
14
43
15
44
## Deployment
16
45
17
46
- Update the version number in `web/manifest.json`.
18
47
- Zip `web/manifest.json`, `web/background.js`, and `dart.png`.
19
48
- Upload the `.zip` to the Chrome Web Store.
20
-
21
-
## [For Googlers] Local Development
22
-
23
-
The developer key is needed for local development and testing. Add one of the whitelisted keys to `web/manifest.json`.
0 commit comments