... | ... | @@ -72,7 +72,7 @@ Press `Ctrl+Shift+X` type `Firefox` and select extension `Debugger For FireFox` |
|
|
"request": "attach",
|
|
|
"name": "SyNode",
|
|
|
"addonType": "webExtension",
|
|
|
"addonPath": "${workspaceRoot}/",
|
|
|
"addonPath": "${workspaceFolder}/",
|
|
|
"host": "127.0.0.1",
|
|
|
"port": 6000,
|
|
|
"sourceMaps": "client"
|
... | ... | @@ -82,11 +82,21 @@ Press `Ctrl+Shift+X` type `Firefox` and select extension `Debugger For FireFox` |
|
|
```
|
|
|
|
|
|
### Modify a `package.json`
|
|
|
Since UB can run multiple JS Engine, we need to add a configuration with a engine name we want to debug.
|
|
|
Since UB can run multiple JS Engine, we need to add a configuration with an engine name we want to debug.
|
|
|
|
|
|
Modify your application `package.json` by adding top-level property `"id": "Server"`.
|
|
|
Plase the new manifest.json file at the folder specified in addonPath above (practically - close to the package.json file). It should contain the following content:
|
|
|
|
|
|
Possible values are:
|
|
|
``` manifest.json
|
|
|
{
|
|
|
"applications": {
|
|
|
"gecko": {
|
|
|
"id": "client"
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
|
|
|
Possible values of id property above are:
|
|
|
|
|
|
- `"id": "Server"` to debug a server-side thread
|
|
|
- `"id": "client"` to debug a console thread (command line js executed by `>ub myscript.js -dev - debug`)
|
... | ... | |