Skip to content

Commit

Permalink
"nonstop": true option (default: false) on launch.json
Browse files Browse the repository at this point in the history
attach configuration in launch.json file `"nonstop": true` option
is supported. If nonstop is true, do not pause on attach timing.

fix #739
  • Loading branch information
ko1 committed Nov 3, 2022
1 parent 607a1c4 commit f94a8ac
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lib/debug/server_dap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -273,17 +273,22 @@ def process
when 'launch'
send_response req
UI_DAP.local_fs_map_set req.dig('arguments', 'localfs') || req.dig('arguments', 'localfsMap')
@is_launch = true
@nonstop = true

when 'attach'
send_response req
UI_DAP.local_fs_map_set req.dig('arguments', 'localfs') || req.dig('arguments', 'localfsMap')
@is_launch = false

if req.dig('arguments', 'nonstop') == true
@nonstop = true
else
@nonstop = false
end

when 'configurationDone'
send_response req

if @is_launch
if @nonstop
@q_msg << 'continue'
else
if SESSION.in_subsession?
Expand Down

0 comments on commit f94a8ac

Please sign in to comment.