Skip to content

Commit

Permalink
Fix debugging #125 (#196)
Browse files Browse the repository at this point in the history
Signed-off-by: BugDiver <[email protected]>
  • Loading branch information
Vinay Shankar Shukla authored Aug 5, 2020
1 parent 8cf1d6b commit 64d020d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/executor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

module Gauge
class DebugOptions
attr_accessor :host, :port, :notify_dispatcher
attr_accessor :host, :port, :notify_dispatcher, :socket_path, :skip_wait_for_start
end

# @api private
Expand All @@ -19,7 +19,7 @@ def self.load_steps(dir)
start_debugger
Dir["#{dir}/**/*.rb"].each do |x|
begin
GaugeLog.info "Loading step implemetations from #{x} dirs"
GaugeLog.debug "Loading step implemetations from #{x} dirs"
ENV['GAUGE_STEP_FILE'] = x
require x
rescue Exception => e
Expand All @@ -34,6 +34,7 @@ def self.start_debugger
options.host = '127.0.0.1'
options.port = ENV['DEBUG_PORT'].to_i
options.notify_dispatcher = false
options.skip_wait_for_start = false
GaugeLog.info ATTACH_DEBUGGER_EVENT
Debugger.prepare_debugger(options)
end
Expand Down
2 changes: 1 addition & 1 deletion ruby.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id" : "ruby",
"version" : "0.5.3",
"version" : "0.5.4",
"description": "ruby support for gauge",
"install": {
"windows": [],
Expand Down

0 comments on commit 64d020d

Please sign in to comment.