Skip to content

Commit

Permalink
DAP: support to show global variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1 committed Nov 25, 2022
1 parent 5bb2ff1 commit 182e779
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/debug/server_dap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,8 @@ def process_protocol_request req
if ref = @var_map[varid]
case ref[0]
when :globals
vars = global_variables.map do |name|
gv = 'Not implemented yet...'
vars = global_variables.sort.map do |name|
gv = eval(name.to_s)
{
name: name,
value: gv.inspect,
Expand Down

0 comments on commit 182e779

Please sign in to comment.