ruby-debug-ide 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/ChangeLog +10 -0
  2. data/Rakefile +1 -1
  3. data/lib/ruby-debug.rb +10 -7
  4. data/test/rd_test_base.rb +5 -5
  5. metadata +21 -21
data/ChangeLog CHANGED
@@ -1,3 +1,13 @@
1
+ 2009-05-21 18:16 Martin Krauskopf
2
+
3
+ * ChangeLog: Changelog update
4
+
5
+ 2009-05-21 18:01 Martin Krauskopf
6
+
7
+ * Rakefile, doc/protocol-spec.texi, lib/ruby-debug.rb,
8
+ test/rd_test_base.rb: Added Debugger::start_server (ticket
9
+ #25972), patch by Tim Hanson
10
+
1
11
  2009-03-12 11:38 Martin Krauskopf
2
12
 
3
13
  * ChangeLog, Rakefile, doc/protocol-spec.texi, lib/ruby-debug.rb,
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ task :default => [:test]
10
10
 
11
11
  # ------- Default Package ----------
12
12
  RUBY_DEBUG_BASE_VERSION = "0.10.3"
13
- RUBY_DEBUG_IDE_VERSION = "0.4.5"
13
+ RUBY_DEBUG_IDE_VERSION = "0.4.6"
14
14
 
15
15
  FILES = FileList[
16
16
  'CHANGES',
@@ -80,14 +80,16 @@ module Debugger
80
80
  context
81
81
  end
82
82
  end
83
-
84
- def debug_program(options)
83
+
84
+ def start_server(host = nil, port = 1234)
85
85
  return if started?
86
-
87
86
  start
88
-
89
- start_control(options.host, options.port)
90
-
87
+ start_control(host, port)
88
+ end
89
+
90
+ def debug_program(options)
91
+ start_server(options.host, options.port)
92
+
91
93
  raise "Control thread did not start (#{@control_thread}}" unless @control_thread && @control_thread.alive?
92
94
 
93
95
  @mutex = Mutex.new
@@ -106,6 +108,7 @@ module Debugger
106
108
  end
107
109
 
108
110
  def run_prog_script
111
+ return unless @mutex
109
112
  @mutex.synchronize do
110
113
  @proceed.signal
111
114
  end
@@ -119,7 +122,7 @@ module Debugger
119
122
  unless RUBY_PLATFORM =~ /darwin/i # Mac OS X seems to have problem with 'localhost'
120
123
  host ||= 'localhost' # nil does not seem to work for IPv6, localhost does
121
124
  end
122
- $stderr.printf "Fast Debugger (ruby-debug-ide 0.4.5) listens on #{host}:#{port}\n"
125
+ $stderr.printf "Fast Debugger (ruby-debug-ide 0.4.6) listens on #{host}:#{port}\n"
123
126
  server = TCPServer.new(host, port)
124
127
  while (session = server.accept)
125
128
  begin
@@ -22,17 +22,17 @@ class RDTestBase < TestBase
22
22
  cmd = "#{interpreter}"
23
23
  cmd << " --debug" if jruby?
24
24
  cmd << " -J-Xdebug -J-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y" if jruby? and debug_jruby?
25
- cmd << " -I '#{File.dirname(script)}' #{@rdebug_ide} _0.4.5_" +
26
- (@verbose_server ? " -d" : "") +
25
+ cmd << " -I '#{File.dirname(script)}' #{@rdebug_ide} _0.4.6_" +
26
+ (@verbose_server ? " -d" : "") +
27
27
  " -p #{port} -- '#{script}'"
28
28
  end
29
29
 
30
30
  def start_debugger
31
31
  send_ruby("start")
32
32
  end
33
-
33
+
34
34
  private
35
-
35
+
36
36
  def find_rdebug_ide
37
37
  ENV['PATH'].split(File::PATH_SEPARATOR).each do |dir|
38
38
  rdebug_ide = File.join(dir, 'rdebug-ide')
@@ -40,5 +40,5 @@ class RDTestBase < TestBase
40
40
  end
41
41
  nil
42
42
  end
43
-
43
+
44
44
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-debug-ide
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Barchfeld, Martin Krauskopf
@@ -9,7 +9,7 @@ autorequire: ruby-debug-base
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-12 00:00:00 +01:00
12
+ date: 2009-05-21 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -37,39 +37,39 @@ files:
37
37
  - MIT-LICENSE
38
38
  - Rakefile
39
39
  - bin/rdebug-ide
40
+ - lib/ruby-debug.rb
40
41
  - lib/ruby-debug
41
- - lib/ruby-debug/xml_printer.rb
42
42
  - lib/ruby-debug/command.rb
43
- - lib/ruby-debug/processor.rb
43
+ - lib/ruby-debug/event_processor.rb
44
+ - lib/ruby-debug/xml_printer.rb
45
+ - lib/ruby-debug/interface.rb
46
+ - lib/ruby-debug/printers.rb
47
+ - lib/ruby-debug/helper.rb
44
48
  - lib/ruby-debug/commands
45
- - lib/ruby-debug/commands/load.rb
46
- - lib/ruby-debug/commands/breakpoints.rb
49
+ - lib/ruby-debug/commands/catchpoint.rb
50
+ - lib/ruby-debug/commands/eval.rb
47
51
  - lib/ruby-debug/commands/variables.rb
48
52
  - lib/ruby-debug/commands/control.rb
49
- - lib/ruby-debug/commands/enable.rb
50
- - lib/ruby-debug/commands/threads.rb
51
53
  - lib/ruby-debug/commands/stepping.rb
52
- - lib/ruby-debug/commands/eval.rb
53
- - lib/ruby-debug/commands/catchpoint.rb
54
+ - lib/ruby-debug/commands/breakpoints.rb
54
55
  - lib/ruby-debug/commands/condition.rb
55
- - lib/ruby-debug/commands/frame.rb
56
56
  - lib/ruby-debug/commands/inspect.rb
57
- - lib/ruby-debug/interface.rb
58
- - lib/ruby-debug/printers.rb
59
- - lib/ruby-debug/helper.rb
60
- - lib/ruby-debug/event_processor.rb
61
- - lib/ruby-debug.rb
57
+ - lib/ruby-debug/commands/load.rb
58
+ - lib/ruby-debug/commands/frame.rb
59
+ - lib/ruby-debug/commands/enable.rb
60
+ - lib/ruby-debug/commands/threads.rb
61
+ - lib/ruby-debug/processor.rb
62
+ - test/rd_stepping_breakpoints_test.rb
62
63
  - test/rd_basic_test.rb
63
- - test/rd_test_base.rb
64
64
  - test/rd_inspect_test.rb
65
+ - test/rd_variables_test.rb
66
+ - test/rd_test_base.rb
67
+ - test/rd_condition_test.rb
65
68
  - test/rd_catchpoint_test.rb
69
+ - test/rd_threads_and_frames_test.rb
66
70
  - test/ruby-debug
67
71
  - test/ruby-debug/xml_printer_test.rb
68
72
  - test/rd_enable_disable_test.rb
69
- - test/rd_threads_and_frames_test.rb
70
- - test/rd_condition_test.rb
71
- - test/rd_stepping_breakpoints_test.rb
72
- - test/rd_variables_test.rb
73
73
  has_rdoc: false
74
74
  homepage: http://rubyforge.org/projects/debug-commons/
75
75
  licenses: []