https://github.com/kamranaghlami/rclinkapp
https://github.com/kamranaghlami/rclinkapp
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kamranaghlami/rclinkapp
- Owner: KamranAghlami
- License: mit
- Created: 2024-02-10T12:43:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-22T12:03:30.000Z (about 1 year ago)
- Last Synced: 2024-05-22T12:55:57.394Z (about 1 year ago)
- Language: C++
- Size: 303 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RCLinkApp
This is the WebAssembly running behind the [RCLink](https://github.com/KamranAghlami/RCLink).
### Build
In order to build the project using VSCode add this to your _`settings.json`_ file.
``` json
{
"cmake.configureArgs": [
"-DCMAKE_TOOLCHAIN_FILE=/path/to/your/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake"
]
}
```
### Debug
#### Debugging inside VSCode
In order to debug the project inside VSCode, install the [WebAssembly DWARF Debugging](https://marketplace.visualstudio.com/items?itemName=ms-vscode.wasm-dwarf-debugging) extension, open `index.html` using [Live Preview](https://marketplace.visualstudio.com/items?itemName=ms-vscode.live-server) extension, and then use `Debug: Open Link` command.
#### Debugging with Chrome
In order to debug the project using Chrome DevTools, install the [C/C++ DevTools Support (DWARF)](https://chromewebstore.google.com/detail/cc++-devtools-support-dwa/pdcpmagijalfljmkmjngeonclgbbannb) extension.
##### Note about WSL2
The extension tries to open files locally, this is problematic when using WSL2, I fixed it by adding the following as path substitutions in the extension's options: (pay attention to the order and adjust to your emsdk installation directory.)```
"/b/s/w/ir/x/w/install" -> "//wsl.localhost/Ubuntu/path/to/your/emsdk/upstream""/emsdk/emscripten" -> "//wsl.localhost/Ubuntu/path/to/your/emsdk/upstream/emscripten"
"/" -> "//wsl.localhost/Ubuntu/"
```
Then go to the DevTools settings, and enable the following option:
```
Allow DevTools to load resources, such as source maps, from remote file paths. Disabled by default for security reasons.
```
Reload the DevTools and sources now should be found.