debug 1.3.3 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d2f3adfa33baa3d7ef0a8ff1924d4d148be909f8cbdfc1992efda7e4ef564a17
4
- data.tar.gz: 43085e7bec187d698d42bf7a4fc7c3ee2f4cde387cf411b2648411dc6cbb1721
3
+ metadata.gz: 58d7a886dc29b717d9f31ca7859a40a881a251a4c5e64705ac38de1cb94c0f32
4
+ data.tar.gz: a58994d8d302dac0aedd63775b8d81769d326a6bb0746d9953182fa8b36894fd
5
5
  SHA512:
6
- metadata.gz: 5bafcaeeb661378a3696968655cfc9b24aadb6c0ada385d143406472db4cc1a51d55bb460431ef9679d8e6ffe846c269f731335380999256565b2d259139f2d9
7
- data.tar.gz: 961d6a453a4f117af9e056658d31afc39e173668f32eb1745f0bdad842c4891a2b6bff0bfec45d6e17fc94108da3ac4a5274118a4f0213ae0a2a5a181de89f99
6
+ metadata.gz: 3988bc3fd10cab3592a9f6b3b816dd2f5cabf5e8e4bceaec646011a1663b037a7f9683008c77d1c91a0a8f984540c16ef5975fa14b93f84b6cca5915e98df440
7
+ data.tar.gz: 4283c41adf172ae2d1e51bb34adfb65ab2b521862bae6be7bd08ba485bea178e0e2ec511db7b9f0297e2aea4e4d2ac249887bb9271f51d71d6beb76a0aee63d0
@@ -222,14 +222,35 @@ module DEBUGGER__
222
222
  @q_msg << 'c'
223
223
  send_response req, allThreadsContinued: true
224
224
  when 'next'
225
- @q_msg << 'n'
226
- send_response req
225
+ begin
226
+ @session.check_postmortem
227
+ @q_msg << 'n'
228
+ send_response req
229
+ rescue PostmortemError
230
+ send_response req,
231
+ success: false, message: 'postmortem mode',
232
+ result: "'Next' is not supported while postrmotem mode"
233
+ end
227
234
  when 'stepIn'
228
- @q_msg << 's'
229
- send_response req
235
+ begin
236
+ @session.check_postmortem
237
+ @q_msg << 's'
238
+ send_response req
239
+ rescue PostmortemError
240
+ send_response req,
241
+ success: false, message: 'postmortem mode',
242
+ result: "'stepIn' is not supported while postrmotem mode"
243
+ end
230
244
  when 'stepOut'
231
- @q_msg << 'fin'
232
- send_response req
245
+ begin
246
+ @session.check_postmortem
247
+ @q_msg << 'fin'
248
+ send_response req
249
+ rescue PostmortemError
250
+ send_response req,
251
+ success: false, message: 'postmortem mode',
252
+ result: "'stepOut' is not supported while postrmotem mode"
253
+ end
233
254
  when 'terminate'
234
255
  send_response req
235
256
  exit
@@ -491,7 +512,7 @@ module DEBUGGER__
491
512
  case type
492
513
  when :backtrace
493
514
  event! :dap_result, :backtrace, req, {
494
- stackFrames: @target_frames.map.{|frame|
515
+ stackFrames: @target_frames.map{|frame|
495
516
  path = frame.realpath || frame.path
496
517
  ref = frame.file_lines unless path && File.exist?(path)
497
518
 
data/lib/debug/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DEBUGGER__
4
- VERSION = "1.3.3"
4
+ VERSION = "1.3.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: debug
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koichi Sasada