Module Handlers
In: lib/breakpoint_client.rb

Methods

Public Instance methods

[Source]

     # File lib/breakpoint_client.rb, line 104
104:   def breakpoint_handler(workspace, message)
105:     puts message
106:     IRB.start(nil, nil, workspace)
107: 
108:     puts ""
109:     if Options[:Verbose] then
110:       puts "Resumed execution. Waiting for next breakpoint...", ""
111:     end
112:   end

[Source]

     # File lib/breakpoint_client.rb, line 123
123:   def collision_handler()
124:     msg = [
125:       "  *** Breakpoint service collision ***",
126:       "  Another Breakpoint service tried to use the",
127:       "  port already occupied by this one. It will",
128:       "  keep waiting until this Breakpoint service",
129:       "  is shut down.",
130:       "  ",
131:       "  If you are using the Breakpoint library for",
132:       "  debugging a Rails or other CGI application",
133:       "  this likely means that this Breakpoint",
134:       "  session belongs to an earlier, outdated",
135:       "  request and should be shut down via 'exit'."
136:     ].join("\n")
137: 
138:     if RUBY_PLATFORM["win"] then
139:       # This sucks. Sorry, I'm not doing this because

140:       # I like funky message boxes -- I need to do this

141:       # because on Windows I have no way of displaying

142:       # my notification via puts() when gets() is still

143:       # being performed on STDIN. I have not found a

144:       # better solution.

145:       begin
146:         require 'tk'
147:         root = TkRoot.new { withdraw }
148:         Tk.messageBox('message' => msg, 'type' => 'ok')
149:         root.destroy
150:       rescue Exception
151:         puts "", msg, ""
152:       end
153:     else
154:       puts "", msg, ""
155:     end
156:   end

[Source]

     # File lib/breakpoint_client.rb, line 114
114:   def eval_handler(code)
115:     result = eval(code, TOPLEVEL_BINDING)
116:     if result then
117:       DRbObject.new(result)
118:     else
119:       result
120:     end
121:   end

[Validate]