Skip to content

Commit 42d9d3c

Browse files
authored
Merge pull request #358 from riscv-software-src/ruby_debug_support
Adding support for VSCode rdbg Ruby debugger extension
2 parents aaad5b4 + 015d6b4 commit 42d9d3c

File tree

6 files changed

+37
-1
lines changed

6 files changed

+37
-1
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ RUN apt-get install -y --no-install-recommends bundler
1111
RUN apt-get install -y --no-install-recommends nodejs
1212
RUN apt-get install -y --no-install-recommends npm
1313
RUN apt-get install -y --no-install-recommends ditaa
14+
RUN apt-get install -y --no-install-recommends libyaml-dev
1415
RUN apt-get clean autoclean
1516
RUN apt-get autoremove -y
1617
RUN rm -rf /var/lib/{apt, dpkg, cache, log}

.vscode/launch.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "rdbg",
6+
"name": "RVA20 Profile",
7+
"request": "launch",
8+
"command": "bundle exec rake",
9+
"script": "gen:profile[RVA20]",
10+
"args": [],
11+
"askParameters": false
12+
}
13+
]
14+
}

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ group :development do
2424
gem 'rubocop-minitest'
2525
gem 'ruby-prof'
2626
gem "ruby-prof-flamegraph"
27+
gem "rdbg"
2728
end

Gemfile.lock

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,18 @@ GEM
3333
concurrent-ruby (1.3.3)
3434
css_parser (1.17.1)
3535
addressable
36+
date (3.4.1)
37+
debug (1.9.2)
38+
irb (~> 1.10)
39+
reline (>= 0.3.8)
3640
diff-lcs (1.5.1)
3741
e2mmap (0.1.0)
3842
hana (1.3.7)
3943
hashery (2.1.2)
44+
io-console (0.8.0)
45+
irb (1.14.2)
46+
rdoc (>= 4.0.0)
47+
reline (>= 0.4.2)
4048
jaro_winkler (1.6.0)
4149
json (2.7.2)
4250
json_schemer (1.0.3)
@@ -81,13 +89,22 @@ GEM
8189
prawn-templates (0.1.2)
8290
pdf-reader (~> 2.0)
8391
prawn (~> 2.2)
92+
psych (5.2.1)
93+
date
94+
stringio
8495
public_suffix (6.0.0)
8596
pygments.rb (3.0.0)
8697
racc (1.8.0)
8798
rainbow (3.1.1)
8899
rake (13.2.1)
89100
rbs (2.8.4)
101+
rdbg (0.1.0)
102+
debug (>= 1.2.2)
103+
rdoc (6.9.1)
104+
psych (>= 4.0.0)
90105
regexp_parser (2.9.2)
106+
reline (0.6.0)
107+
io-console (~> 0.5)
91108
reverse_markdown (2.1.1)
92109
nokogiri
93110
rexml (3.2.8)
@@ -131,6 +148,7 @@ GEM
131148
thor (~> 1.0)
132149
tilt (~> 2.0)
133150
yard (~> 0.9, >= 0.9.24)
151+
stringio (3.1.2)
134152
strscan (3.1.0)
135153
thor (1.3.1)
136154
tilt (2.3.0)
@@ -154,6 +172,7 @@ DEPENDENCIES
154172
minitest
155173
pygments.rb
156174
rake (~> 13.0)
175+
rdbg
157176
rouge
158177
rubocop-minitest
159178
ruby-prof

bin/.container-tag

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.3
1+
0.4

container.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ From: ubuntu:24.04
2626
apt-get install -y --no-install-recommends npm
2727

2828
apt-get install -y --no-install-recommends ditaa
29+
apt-get install -y --no-install-recommends libyaml-dev
2930

3031
# cleanup
3132
apt-get clean autoclean

0 commit comments

Comments
 (0)