-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
2,052 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
--- | ||
head: | ||
- - link | ||
- rel: canonical | ||
href: https://signaldb.js.org/devtools/ | ||
- - meta | ||
- name: og:type | ||
content: article | ||
- - meta | ||
- name: og:url | ||
content: https://signaldb.js.org/devtools/ | ||
- - meta | ||
- name: og:title | ||
content: Developer Tools | SignalDB | ||
- - meta | ||
- name: og:description | ||
content: Learn how to use the developer tools in SignalDB to debug and inspect the state of your SignalDB instance at runtime. | ||
- - meta | ||
- name: description | ||
content: Learn how to use the developer tools in SignalDB to debug and inspect the state of your SignalDB instance at runtime. | ||
- - meta | ||
- name: keywords | ||
content: developer tools, SignalDB, debugging, inspecting, state, runtime, queries, mutations, performance | ||
--- | ||
|
||
# Developer Tools | ||
|
||
::: warning BETA | ||
The developer tools are currently in beta and may not be fully functional or stable. Please report any issues you encounter by opening an issue on [GitHub](https://github.com/maxnowack/signaldb/issues/new). | ||
::: | ||
|
||
SignalDB provides a set of developer tools to help you debug and inspect the state of your SignalDB instance at runtime. | ||
|
||
To get started, add the `@signaldb/devtools` package to your `devDependencies` of your project. | ||
|
||
```bash | ||
npm install --save-dev @signaldb/devtools | ||
``` | ||
|
||
## Usage | ||
|
||
The developer tools will load automatically when you start your development server. You should see the SignalDB icon in the bottom left corner of your screen. | ||
You can open the developer tools by clicking on the icon or by pressing `Ctrl + Shift + S`. | ||
|
||
The developer tools will open and you should the following tabs. | ||
|
||
::: tip | ||
The developer tools will try to resolve names for your collections. You can provide a name for your collection by passing the `name` property to the options of the collection constructor. | ||
::: | ||
|
||
### Data | ||
|
||
The data tab shows the current state of all of your SignalDB collections. You can inspect the collections, documents and even edit the data directly in the developer tools. | ||
|
||
### Queries | ||
|
||
The queries tab shows all of the queries that have been executed on your SignalDB instance. Tracking all queries can decrease performance. You can deactivate tracking of queries by unticking the checkbox right next to the tab name. | ||
|
||
### Mutations | ||
|
||
The mutations tab shows all of the mutations that have been executed on your SignalDB instance. Tracking all mutations can decrease performance. You can deactivate tracking of mutations by unticking the checkbox right next to the tab name. | ||
|
||
### Performance | ||
|
||
The performance tab shows the time measurements of your queries of your SignalDB instance. You can see how long it took to execute queries. Tracking performance can decrease performance. You can deactivate tracking of performance by unticking the checkbox right next to the tab name. | ||
|
||
### Settings | ||
|
||
The settings tab allows you to configure the developer tools. You can change if the button should be shown (you can still open the developer tools with `Ctrl + Shift + S`) and what should be shown as a badge on the button. You can choose between collection count, query count or disable the badge. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.