-
Notifications
You must be signed in to change notification settings - Fork 727
Add source debug vscode extension #943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add source debug vscode extension #943
Conversation
Dev/source debug vscode
494a41c to
52e652b
Compare
test-tools/wamr-ide/README.md
Outdated
|
|
||
| - `VSCode extension` is an extension which can be installed in `vscode`, with which user can build and manage projects, develop `wasm application`, including `building`, `running` and `debugging`. | ||
|
|
||
| - `WASM-toolchain-provider` is a docker image that provide building environment for wasm. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which provides building environment for wasm application
test-tools/wamr-ide/README.md
Outdated
|
|
||
| --- | ||
|
|
||
| ## How to setup WAMR IDE from zero |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about How to setup WAMR IDE?
| @@ -0,0 +1,16 @@ | |||
| ### Build Docker Image | |||
|
|
|||
| - execute `build_docker_image.bat` on `Windows`, note that change the `./resource/run.sh` and `./resource/debug.sh` to `LF` before building | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we provide run.bat and debug.bat for Windows, and let build_docker_image.bat invoke them? It is inconvenient for use to change the file content
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
run.sh and debug.sh will be executed inside of WASM source debug server image rather than in host, so we don't need to provide the batch script for windows. Besides, change the End of Line Sequence to LF is just necessary when user want to build image on windows platform
| ### Resource Details | ||
|
|
||
| - `Dockerflie` is the source file to build `wasm-debug-server` docker image | ||
| - `resource/debug.sh` is the script to execute the `/mnt/build/${target}.wasm` in debug mod, will start up the debugger server inside of the `iwasm` and hold to wait for connecting. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debug mode
test-tools/wamr-ide/WASM-Source-Debug-Server/Docker/build_docker_image.bat
Show resolved
Hide resolved
| @@ -0,0 +1,76 @@ | |||
| # Intro | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about "WASM Toolchain Provider Introduction"?
| ``` | ||
|
|
||
| - Windows | ||
| > Note that change the `./resource/build_wasm.sh` to `LF` before building |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If build_wasm.bat is created, no need to change it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some pictures, will them be very big so the repo size increases a lot?
a24e21a to
6a6b183
Compare
test-tools/wamr-ide/README.md
Outdated
|
|
||
|  | ||
|
|
||
| You can click `Set up now` and select the target folder to create project workspace, or you click `Maybe later` to close the message box. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"or you click" => "click"?
|
|
||
| # How to debug this extension | ||
|
|
||
| > Note that please build `lldb` firstly follow this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
follow => following?
test-tools/wamr-ide/README.md
Outdated
|
|
||
| 1. Install `VSCode` on host. | ||
|
|
||
| - make sure the version of [vscode](https://code.visualstudio.com/Download) you install >_1.59.0_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about you installed is at least _1.59.0_
| @@ -0,0 +1,16 @@ | |||
| ### Build Docker Image | |||
|
|
|||
| - execute `build_docker_image.bat` on `Windows`, note that change the `./resource/run.sh` and `./resource/debug.sh` to `LF` before building | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we forget to change the document? The .sh files had been changed to LF?
8d81cdd to
845e02e
Compare
.gitignore
Outdated
|
|
||
| build_out | ||
| tests/wamr-test-suites/workspace | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems this file has been changed to CRLF style, could you re-save it as LF?
845e02e to
f023429
Compare
be4a6a3 to
0a36768
Compare
0a36768 to
63d8893
Compare
Implement WAMR-IDE with vscode extension to enable developing WebAssembly applications with coding, building, running and debugging support. Support both Linux and Windows, and only support putting all the tools in a docker image, e.g. wasi-sdk, wamrc, iwasm and so on. Co-authored-by: Wang Ning <justdoitwn@163.com>
Implement WAMR-IDE with vscode extension to enable developing WebAssembly applications with coding, building, running and debugging support. Support both Linux and Windows, and only support putting all the tools in a docker image, e.g. wasi-sdk, wamrc, iwasm and so on. Co-authored-by: Wang Ning <justdoitwn@163.com>
No description provided.