wasm-micro-runtime/test-tools/wamr-ide/VSCode-Extension
Ben Riegel 72fc872afe
wamr-ide: Add vscode extension tests (#2292)
This PR adds tests for #2219 by changing the `compilation_on_android_ubuntu.yml` workflow.
The first run will take about two hours, since LLDB is built from scratch. Later, the build is
cached and the whole job should not take more than three minutes.

Core of the PR is an integration test that boots up vscode and lets it debug a test WASM file.
2023-06-20 15:33:01 +08:00
..
.vscode wamr-ide: Add vscode extension tests (#2292) 2023-06-20 15:33:01 +08:00
formatters Add Rust Formatters to Debugger (Vector, Map etc.) (#2219) 2023-06-14 19:53:51 +08:00
resource wamr-ide: Add vscode extension tests (#2292) 2023-06-20 15:33:01 +08:00
src wamr-ide: Add vscode extension tests (#2292) 2023-06-20 15:33:01 +08:00
.eslintrc.json Perfect the codebase for wamr-ide (#1817) 2022-12-27 15:04:36 +08:00
.gitignore wamr-ide: Add vscode extension tests (#2292) 2023-06-20 15:33:01 +08:00
.npmrc wamr-ide: Add vscode extension tests (#2292) 2023-06-20 15:33:01 +08:00
.prettierrc.json Upgrade WAMR-IDE (#1313) 2022-07-29 08:12:36 +08:00
.vscodeignore wamr-ide: Add vscode extension tests (#2292) 2023-06-20 15:33:01 +08:00
CONTRIBUTING.md Perfect the codebase for wamr-ide (#1817) 2022-12-27 15:04:36 +08:00
LICENSE Some wamr-ide improvements (#1354) 2022-08-08 17:52:47 +08:00
package.json wamr-ide: Add vscode extension tests (#2292) 2023-06-20 15:33:01 +08:00
README.md Update CIs and documents to make naming of generated binaries consistent (#1823) 2022-12-24 09:17:39 +08:00
tsconfig.json Perfect the codebase for wamr-ide (#1817) 2022-12-27 15:04:36 +08:00

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 the source debugging feature of this extension, you could download lldb 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 of lldb 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