... | ... | @@ -2,8 +2,46 @@ In this article |
|
|
|
|
|
[[_TOC_]]
|
|
|
|
|
|
Debugging from VSCode
|
|
|
=====================
|
|
|
Autocomplete for *.meta & ubConfig
|
|
|
==================================
|
|
|
|
|
|
We provide a [JSON Schemas](http://json-schema.org/) in a `@unitybase/ub` package for
|
|
|
meta files, server and scheduler configurations. To configure a VSCode for schema support:
|
|
|
- press `Ctrl+Shift+P`, type `Workspace` and select `Preferences: Open Workspace Settings`
|
|
|
- copy config provided below to the `settings.json`
|
|
|
|
|
|
```
|
|
|
{
|
|
|
"files.associations": {
|
|
|
"*.meta": "json"
|
|
|
},
|
|
|
"json.schemas": [{
|
|
|
"fileMatch": [
|
|
|
"*.meta"
|
|
|
],
|
|
|
"url": "https://unitybase.info/models/ub/schemas/entity.schema.json"
|
|
|
}, {
|
|
|
"fileMatch": [
|
|
|
"ubConfig*.json"
|
|
|
],
|
|
|
"url": "https://unitybase.info/models/ub/schemas/ubConfig.schema.json"
|
|
|
}, {
|
|
|
"fileMatch": [
|
|
|
"_schedulers.json"
|
|
|
],
|
|
|
"url": "https://unitybase.info/models/ub/schemas/scheduler.config.schema"
|
|
|
}]
|
|
|
}
|
|
|
```
|
|
|
|
|
|
This will associate `*.meta` with JSON file format and set validation schema`s for meta, ubConfig &schedulers.
|
|
|
|
|
|
More about settings - in [official VSCode doc](https://code.visualstudio.com/docs/getstarted/settings)
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
### Install FireFox extension for VSCode
|
... | ... | |