... | ... | @@ -69,11 +69,22 @@ JavaScript Code Autocomplete in VSCode is broken by Microsoft - IDE support only |
|
|
Debugging
|
|
|
==================================
|
|
|
|
|
|
Starting from version `4.1-beta7` UnityBase support debugging of server-side directly from a [VSCode IDE](https://code.visualstudio.com/) using [VS Code Debug Adapter for Firefox](https://marketplace.visualstudio.com/items?itemName=hbenl.vscode-firefox-debug)
|
|
|
Starting from version `4.1-beta7` UnityBase support debugging of server-side directly from a [VSCode IDE](https://code.visualstudio.com/) using [VS Code Debugger for Firefox](https://marketplace.visualstudio.com/items?itemName=firefox-devtools.vscode-firefox-debug) v2.4.0
|
|
|
|
|
|
### Install FireFox extension for VSCode
|
|
|
### Install Firefox extension for VSCode v2.4.0
|
|
|
|
|
|
From command line:
|
|
|
```
|
|
|
code --install-extension firefox-devtools.vscode-firefox-debug@2.4.0
|
|
|
```
|
|
|
|
|
|
Form IDE:
|
|
|
- Press `Ctrl+Shift+X` type `Firefox` and select extension `firefox-devtools.vscode-firefox-debug`
|
|
|
- Press "Install"
|
|
|
- From the installed extension panel press *Manage* gear button and select "Install another version"
|
|
|
- type 2.4.0 and wait until version found (may be up to 5 minutes)
|
|
|
- select 2.4.0 version
|
|
|
|
|
|
Press `Ctrl+Shift+X` type `Firefox` and select extension `Debugger For FireFox` by Holger Benl
|
|
|
|
|
|
### Create a [Launch configuration](https://code.visualstudio.com/docs/editor/debugging#_launch-configurations)
|
|
|
For UB server >= 5.11
|
... | ... | @@ -93,25 +104,6 @@ For UB server >= 5.11 |
|
|
}
|
|
|
```
|
|
|
|
|
|
For UB server < 5.11
|
|
|
``` launch.json
|
|
|
{
|
|
|
"version": "0.2.0",
|
|
|
"configurations": [
|
|
|
{
|
|
|
"type": "firefox",
|
|
|
"request": "attach",
|
|
|
"name": "SyNode",
|
|
|
"addonType": "webExtension",
|
|
|
"addonPath": "${workspaceFolder}/",
|
|
|
"host": "127.0.0.1",
|
|
|
"port": 6000,
|
|
|
"sourceMaps": "client"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
```
|
|
|
|
|
|
### Adding a manifest
|
|
|
Since UB can run multiple JS Engine, we need to add a configuration with an engine name we want to debug.
|
|
|
|
... | ... | |