You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This patch introduces basic Tarantool debugging facilities into the
extension. Basically it is done using EmmyLuaDebugger [^1].
Set up the debugger using the following instructions.
* Insert debugger code in Tarantool application by pressing
`Ctrl+Shift+P` (or `Cmd+Shift+P` on MacOS) and running `Tarantool:
Insert debugger code` command.
* Start single Tarantool instance.
* Press `F5` or run `Debug: Start debugging` command by pressing
`Ctrl+Shift+P` (or `Cmd+Shift+P` on MacOS).
* Choose `EmmyLua New Debugger` in the list. This debugging
configuration would run automatically from now.
* Set up breakpoints & access the Tarantool instance through `Debug
console` in the bottom panel.
These features are supported.
* Breakpoints.
* Step-by-step execution within the fiber.
* Multiple files support.
* Interacting with the local variables, console at the debug mode.
Needs EmmyLua/EmmyLuaDebugger#75 to be tested
on MacOS on arm64.
Closes#19
[^1] EmmyLua/EmmyLuaDebugger#75
Tarantool VS Code Extension helps you to develop Tarantool applications in VS Code. It enhances your text editor with completions, suggestions, and snippets.
11
+
Tarantool VS Code Extension helps you to develop Tarantool applications in VS Code. It enhances your text editor with completions, suggestions, snippets, and Lua debugger.
12
12
13
13
---
14
14
@@ -22,6 +22,7 @@ This extension offers the following features.
22
22
* Cluster configuration schema validation for Tarantool 3.0+.
23
23
*[tt cluster management utility](https://github.com/tarantool/tt) inside the command palette.
24
24
* Other auxiliary commands, e.g. install Tarantool of a specific version right from VS Code.
25
+
* Debugger for Tarantool apps, allowing breakpoints, step-by-step execution, viewing local variables and Lua code execution.
25
26
26
27
---
27
28
@@ -31,7 +32,6 @@ That's how you use this extension.
31
32
32
33
* Install the extension from the VS Code marketplace.
33
34
* Open a Tarantool project in VS Code.
34
-
* Run `Tarantool: Initialize VS Code extension in existing app` command from the command palette (`Ctrl+Shift+P` or `Cmd+Shift+P` on macOS).
35
35
36
36
You may statically type your Lua functions as follows.
37
37
@@ -54,6 +54,16 @@ local unnamed_user = { name = 'Unnamed' }
54
54
55
55
For more examples, refer to [the examples folder](examples/) with tutorials on how to type your Lua code.
56
56
57
+
## Using debugger
58
+
59
+
Tarantool VS Code extension provides debugger facility for developing Tarantool applications. It employs EmmyLuaDebugger that is a stop-the-world Lua debugger.
60
+
61
+
* Insert debugger code in Tarantool application by pressing `Ctrl+Shift+P` (or `Cmd+Shift+P` on MacOS) and running `Tarantool: Insert debugger code` command.
62
+
* Start single Tarantool instance.
63
+
* Press `F5` or run `Debug: Start debugging` command by pressing `Ctrl+Shift+P` (or `Cmd+Shift+P` on MacOS).
64
+
* Choose `EmmyLua New Debugger` in the list. This debugging configuration would run automatically from now.
65
+
* Set up breakpoints & access the Tarantool instance through `Debug console` in the bottom panel.
66
+
57
67
## Contributing
58
68
59
69
Feel free to open issues on feature requests, wrong type annotations and bugs. If you're dealing with a problem related to LSP we'd appreciate addressing a direct issue to [the used external Lua Language server](https://github.com/CppCXY/emmylua-analyzer-rust).
vscode.window.showWarningMessage(`Unable to access the Tarantool debugger for ${platform} on ${arch}. Try reinstalling the extension. If it does not help consider manually modifying the "cpath" variable in the pasted debugger code`);
0 commit comments