debug 1.11.0 → 1.11.1

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: fc4d6aa4412830633b73eebc239b7b27b17f100965bf4d8b916ce3f6311dfcbb
4
- data.tar.gz: 11180fe8d9c9d3c9b170b6e817a39c6020dbfa831631a8bad9dc6d69d6a6235e
3
+ metadata.gz: 011ef94f3bac0096154f62323d80ac8f7757a5fd38635f614b88694ad9be7da6
4
+ data.tar.gz: cbb3af1767f9970bd79b0104c8408094aa1abda5e308273fa6b132f1d787bd8d
5
5
  SHA512:
6
- metadata.gz: 0f7c076a9affef363d2a04b31484be5dd904bd750ec1a567adabbdaee0cf9a91bc162e564f504ae67711b5940aa34541300c56b81b60a6078b15296ebff2a72a
7
- data.tar.gz: b912627acde3296f2e0701cf9a087d5f626181e04c994994a7ac9943ea38736734d4c2197f795573ca814fcface4c61b330f665aaa4c614f74bf1bfb85c7cb4f
6
+ metadata.gz: 24e1f4992d5ddd9fe7dd2157c946ac17494a7747be09504c3562a565aceee15646b7f1def02b5191e99359b649075b3849f69a37649452a54a83289f7b1c27c3
7
+ data.tar.gz: 14b8a78211acc8d9e7731f57670019eb34f5718fd54aa39b137b25f25dc97c050613f852df3f84dd67fe5a7525e38c90a0ddacff0da50d8eb368d4798d3b1617
@@ -10,7 +10,7 @@ size_t rb_obj_memsize_of(VALUE);
10
10
  // implementation specific.
11
11
  enum imemo_type {
12
12
  imemo_iseq = 7,
13
- imemo_mask = 0x07
13
+ imemo_mask = 0xf
14
14
  };
15
15
 
16
16
  static inline enum imemo_type
@@ -23,7 +23,7 @@ module DEBUGGER__
23
23
  b.eval(expr)
24
24
  rescue Exception => e
25
25
  puts "[EVAL ERROR]"
26
- puts " expr: #{expr}"
26
+ puts " expr: #{expr.inspect}"
27
27
  puts " err: #{e} (#{e.class})"
28
28
  puts "Error caused by #{self}."
29
29
  nil
@@ -352,7 +352,7 @@ module DEBUGGER__
352
352
  next if ThreadClient.current.management?
353
353
  next if skip_path?(tp.path)
354
354
 
355
- if need_suspend? safe_eval(tp.binding, @cond)
355
+ if @cond.nil? || need_suspend?(safe_eval(tp.binding, @cond))
356
356
  suspend
357
357
  end
358
358
  }
data/lib/debug/console.rb CHANGED
@@ -163,6 +163,7 @@ module DEBUGGER__
163
163
  path = File.join(File.expand_path(state_dir), 'rdbg', 'history')
164
164
  end
165
165
 
166
+ require 'fileutils'
166
167
  FileUtils.mkdir_p(File.dirname(path)) unless File.exist?(path)
167
168
  path
168
169
  end
@@ -171,7 +171,7 @@ module DEBUGGER__
171
171
 
172
172
  private def get_singleton_class obj
173
173
  obj.singleton_class # TODO: don't use it
174
- rescue TypeError
174
+ rescue Exception
175
175
  nil
176
176
  end
177
177
 
data/lib/debug/server.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'socket'
4
+ require 'fileutils'
4
5
  require_relative 'config'
5
6
  require_relative 'version'
6
7
 
@@ -358,7 +358,7 @@ module DEBUGGER__
358
358
  }
359
359
  send_response req, breakpoints: (bps.map do |bp| {verified: true,} end)
360
360
  else
361
- send_response req, success: false, message: "#{req_path} is not available"
361
+ send_response req, breakpoints: (args['breakpoints'].map do |bp| {verified: false, message: "#{req_path} could not be located; specify source location in launch.json with \"localfsMap\" or \"localfs\""} end)
362
362
  end
363
363
 
364
364
  when 'setFunctionBreakpoints'
@@ -1310,7 +1310,7 @@ module DEBUGGER__
1310
1310
  frame._local_variables = b.local_variables.map{|name|
1311
1311
  [name, b.local_variable_get(name)]
1312
1312
  }.to_h
1313
- frame._callee = b.eval('__callee__')
1313
+ frame._callee = b.eval('::Kernel.__callee__')
1314
1314
  end
1315
1315
  }
1316
1316
  append(frames)
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.11.0"
4
+ VERSION = "1.11.1"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: debug
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koichi Sasada
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-06-17 00:00:00.000000000 Z
10
+ date: 2025-12-19 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: irb
@@ -89,7 +89,7 @@ licenses:
89
89
  metadata:
90
90
  homepage_uri: https://github.com/ruby/debug
91
91
  source_code_uri: https://github.com/ruby/debug
92
- changelog_uri: https://github.com/ruby/debug/releases/tag/v1.11.0
92
+ changelog_uri: https://github.com/ruby/debug/releases/tag/v1.11.1
93
93
  rdoc_options: []
94
94
  require_paths:
95
95
  - lib