Skip to content

Commit

Permalink
Setup vs code and theia/gitpod for debugging rust"
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAnyKey committed Jun 30, 2020
1 parent e11285a commit c03617d
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,11 @@ RUN rm -rf ~/.rustup && \
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh && \
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
4 changes: 4 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
image:
file: .gitpod.Dockerfile

vscode:
extensions:
- [email protected]:vTh/rWhvJ5nQpeAVsD20QA==
16 changes: 16 additions & 0 deletions .theia/launch.json
Original file line number Diff line number Diff line change
@@ -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 changes: 12 additions & 0 deletions .theia/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"cpp.buildConfigurations": [
{
"name": "",
"directory": ""
},
{
"name": "",
"directory": ""
}
]
}

0 comments on commit c03617d

Please sign in to comment.