mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-11 12:11:14 +00:00
![]() This PR adds LLDB formatters so that variables are human-readable when debugging Rust code in VS Code. This includes Tuple, Slice, String, Vector, Map, Enum etc. It also distributes a standalone Python version with LLDB. This solution enables high portability, so Ubuntu 20.04 and 22.04 can for example still be supported with the same build since glibc is statically linked in the Python build, also making it easier to support more operating systems in the future. Known Issues: Enum types are not displayed correctly. For more details, refer to: https://github.com/bytecodealliance/wasm-micro-runtime/pull/2219 |
||
---|---|---|
.. | ||
.vscode | ||
formatters | ||
resource | ||
src | ||
.eslintrc.json | ||
.gitignore | ||
.prettierrc.json | ||
.vscodeignore | ||
CONTRIBUTING.md | ||
LICENSE | ||
package.json | ||
README.md | ||
tsconfig.json |
Introduction
An integrated development environment for WASM.
How to debug this extension
Note that when you download and decompress to get .vsix file from our release. It's by default that the
source debugging
feature is not enabled. If you want to enable thesource debugging
feature of this extension, you could downloadlldb
from our release (This is the recommended way, and you could do it with a single click in VS Code). Then if you want to use your customized lldb patch, you could build your own version oflldb
and then follow this instruction to put them in the correct path
1. open VSCode_Extension
directory with the vscode
File -> Open Folder -> select `VSCode_Extension`
2. run npm install
in terminal
to install necessary dependencies.
3. click F5
or ctrl+shift+D
switch to Run and Debug
panel and click Run Extension
to boot.
Code Format
prettier
is recommended and .prettierrc.json
has been provided in workspace.
More details and usage guidance please refer prettier
You can run following commands in current extension directory to check and apply
# install prettier firstly
npm install --save-dev prettier
# check format
npm run prettier-format-check
# apply
npm run prettier-format-apply