Debug tools
A collection of useful tools to help us develop extensions.
Install
-
Install package
npm i @vulcan-sql/extension-debug-tools
-
Update
vulcan.yaml
extensions: debug: '@vulcan-sql/extension-debug-tools' debug: # Optional: Path to store debug logs debug-folder: 'path-to-a-folder'
Tools
- AST Printer: Generate AST tree in mermaid format.
- Build the project:
vulcan build
- After building, we’ll generate AST trees in
.vulcan-debug
folder for each query. You can use some tools like Mermaid Live Editor to view them.
- Build the project: