41 |
debugger = nil |
debugger = nil |
42 |
session = nil |
session = nil |
43 |
cmd = cmd_mgr.add("App/Run/Debugger", "&Debugger") do |cmd_slot| |
cmd = cmd_mgr.add("App/Run/Debugger", "&Debugger") do |cmd_slot| |
44 |
unless session |
unless debugger |
45 |
debugger = cmd_slot["/system/ui/components/Debugger"].manager.add("debug") |
debugger = cmd_slot["/system/ui/components/Debugger"].manager.add("debug") |
46 |
session = Debugger.new(plugin,slot) |
#session = Debugger.new(plugin,slot) |
47 |
end |
end |
48 |
end |
end |
49 |
|
|
86 |
|
|
87 |
include DRbUndumped |
include DRbUndumped |
88 |
|
|
|
@@session_count = 0 |
|
|
|
|
89 |
attr_reader :slot, :running |
attr_reader :slot, :running |
90 |
|
|
91 |
## |
## |
101 |
@action_queue = Array.new |
@action_queue = Array.new |
102 |
|
|
103 |
#@plugin['/system/ui/current/Debugger'].data = self |
#@plugin['/system/ui/current/Debugger'].data = self |
104 |
@plugin.log_info << "Debugger session created #{@slot.path}" |
@plugin.log_info << "Debugger session created #{slot.path}" |
105 |
end |
end |
106 |
|
|
107 |
|
|
179 |
} |
} |
180 |
|
|
181 |
renderer().start |
renderer().start |
182 |
@@running = true |
@running = true |
183 |
@plugin.log_info << "Debugger session started #{@slot.path}" |
@plugin.log_info << "Debugger session started #{@slot.path}" |
184 |
|
|
185 |
end |
end |
261 |
show_debugline(@file,nil) |
show_debugline(@file,nil) |
262 |
breakpoint_unsubscribe() |
breakpoint_unsubscribe() |
263 |
reset_loaded_file() |
reset_loaded_file() |
264 |
@@running = false |
@running = false |
265 |
@plugin.log_info << "Debugger session stopped #{@slot.path}" |
@plugin.log_info << "Debugger session stopped #{@slot.path}" |
266 |
end |
end |
267 |
|
|
271 |
def close() |
def close() |
272 |
renderer().close |
renderer().close |
273 |
@plugin.log_info << "Debugger plugin closed #{@slot.path}" |
@plugin.log_info << "Debugger plugin closed #{@slot.path}" |
274 |
@@active = nil |
@active = nil |
275 |
@slot.prune |
@slot.prune |
276 |
end |
end |
277 |
|
|
427 |
# Return:: [Boolean] true if it's running |
# Return:: [Boolean] true if it's running |
428 |
# |
# |
429 |
def running? |
def running? |
430 |
@@running |
running |
431 |
end |
end |
432 |
|
|
433 |
## |
## |