Document
WAMR on GitHubWAMR Blogs
  • WAMR Document Home Page
  • Basics
    • Introduction
      • WebAssembly
      • WAMR Project
      • Security Feature
    • Getting Started
      • Host Environment Preparation
      • Hello-world Program On Host
      • Docker Environment Preparation
      • Hello-world Program On Docker
      • Build And Run WASM Application
        • More Tools To Create WASM Application
  • WAMR In Practice
    • Tutorial
      • WAMR Running Modes
      • Build Tutorial
        • Build iwasm
        • Build wamrc
      • Language Embedding
        • C/C++
        • Python
        • Go
      • Debugging & IDE Support
        • WAMR Source Debugging With LLDB
        • VS Code Support
          • Enable Debugging In VS Code
          • Move LLDB Binaries
    • Advance Tutorial
      • Performance Test
        • PolyBench
        • CoreMark
        • Sightglass
        • JetStream2
      • Memory Usage Tunning
      • Application Framework
      • Remote Application Management
        • Example 1: Install/Uninstall WASM App Remotely
        • Example 2: IoT App Store Demo
      • WAMR Porting Guide
    • Features
      • Export Native APIs To WASM Applications
        • Example 1: Export C Functions to WASM
        • Example 2: Using "native-lib"
      • Multiple Modules As Dependencies
        • Multi-modules Example
      • Multi-thread, Pthread APIs And Thread Management
        • Multi-thread Example
      • Linux SGX(Intel Software Guard Extension) Support
      • Linux SGX Remote Attestation
      • XIP(Execution In Place) Support
      • Socket Support
        • Example: Use Socket Api in WAMR
      • Post-MVP Features
        • WASM C API
        • 128-bit SIMD
        • Reference Types
    • More Examples
      • File Interaction Of WASI
      • GUI Example
        • Littlevgl
        • LVGL
      • Same WASM Program Executing Concurrently
      • Build And Run Workload
    • User Case
  • Programmer's Manual
    • Programmer's Manual
      • C API Lists
  • Community
    • How To Contribute
    • WAMR On Github
    • WAMR Blogs
  • Appendix
    • Appendix A. Background Knowledge And Glossary Of Terms
    • Appendix B. WebAssembly Details
    • Appendix C. Complete WAMR Guide
Powered by GitBook
On this page
  • Introduction
  • How to debug this extension
  • Code Format
  1. WAMR In Practice
  2. Tutorial
  3. Debugging & IDE Support
  4. VS Code Support

Enable Debugging In VS Code

PreviousVS Code SupportNextMove LLDB Binaries

Last updated 2 years ago

Introduction

An integrated development environment for WASM.

How to debug this extension

Note that when you download and decompress to get .vsix file from . 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 (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 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

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
our release
our release
instruction
prettier