forked from Rust-related/RustPython
Setup vs code and theia/gitpod for debugging rust"
This commit is contained in:
7
.gitpod.Dockerfile
vendored
7
.gitpod.Dockerfile
vendored
@@ -11,4 +11,11 @@ RUN rm -rf ~/.rustup && \
|
|||||||
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh && \
|
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh && \
|
||||||
rustup target add wasm32-unknown-unknown
|
rustup target add wasm32-unknown-unknown
|
||||||
|
|
||||||
|
RUN sudo apt-get -q update \
|
||||||
|
&& sudo apt-get install -yq \
|
||||||
|
libpython3.6 \
|
||||||
|
rust-lldb \
|
||||||
|
&& sudo rm -rf /var/lib/apt/lists/*
|
||||||
|
ENV RUST_LLDB=/usr/bin/lldb-8
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
|||||||
@@ -1,2 +1,6 @@
|
|||||||
image:
|
image:
|
||||||
file: .gitpod.Dockerfile
|
file: .gitpod.Dockerfile
|
||||||
|
|
||||||
|
vscode:
|
||||||
|
extensions:
|
||||||
|
- vadimcn.vscode-lldb@1.5.3:vTh/rWhvJ5nQpeAVsD20QA==
|
||||||
16
.theia/launch.json
Normal file
16
.theia/launch.json
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"type": "lldb",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Debug Rust Code",
|
||||||
|
//"preLaunchTask": "cargo",
|
||||||
|
"program": "${workspaceFolder}/target/debug/rustpython",
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
//"valuesFormatting": "parseText"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
12
.theia/settings.json
Normal file
12
.theia/settings.json
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"cpp.buildConfigurations": [
|
||||||
|
{
|
||||||
|
"name": "",
|
||||||
|
"directory": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "",
|
||||||
|
"directory": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user