Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions lib/debug/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,7 @@ def activate on_fork: false
@tp_thread_begin&.disable
@tp_thread_begin = nil

if on_fork
@ui.activate self, on_fork: true
else
@ui.activate self, on_fork: false
end
@ui.activate self, on_fork: on_fork

q = Queue.new
@session_server = Thread.new do
Expand Down
13 changes: 3 additions & 10 deletions lib/debug/thread_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,7 @@ def inspect
end

def to_s
loc = current_frame&.location

if loc
str = "(#{@thread.name || @thread.status})@#{loc}"
else
str = "(#{@thread.name || @thread.status})@#{@thread.to_s}"
end

str = "(#{@thread.name || @thread.status})@#{current_frame&.location || @thread.to_s}"
str += " (not under control)" unless self.waiting?
str
end
Expand Down Expand Up @@ -557,8 +550,8 @@ def truncate(string, width:)

def show_by_editor path = nil
unless path
if @target_frames && frame = @target_frames[@current_frame_index]
path = frame.path
if current_frame
path = current_frame.path
else
return # can't get path
end
Expand Down