mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-10-25 18:31:17 +00:00
Download and install the WAMR patched LLDB binary on vscode extension activation. This allows the user to download the packaged .vsix file, where the activation script should handle determining what LLDB binary they should use, and install it in the correct location. |
||
|---|---|---|
| .. | ||
| .vscode | ||
| resource | ||
| src | ||
| .eslintrc.json | ||
| .gitignore | ||
| .prettierrc.json | ||
| .vscodeignore | ||
| 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 debuggingfeature is not enabled. If you want to enablesource debuggingfeature of this extension, you could either downloadlldbfrom our release and put them in correct path mentioned in this instruction (This is recommended way), or you could buildlldbyourself follow this instruction
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