Skip to content

Instantly share code, notes, and snippets.

@joonty
Created August 14, 2012 08:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joonty/3347567 to your computer and use it in GitHub Desktop.
Save joonty/3347567 to your computer and use it in GitHub Desktop.
Patch for context get in RDBGP, part of the Komodo Ruby remote debugger tool. Fixes a problem getting non-local variables.
43a44
> processor.logger.debug("Adjusted stack depth: " + stackDepth.to_s)
88c89,93
< val = eval(name, the_binding)
---
> s_name = name.inspect
> if s_name[0] == ":"
> s_name = s_name[1..-1]
> end
> val = eval(s_name, the_binding)
93c98
< namesAndValues << [name, val]
---
> namesAndValues << [s_name, val]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment