+1; very elegant solution! Just marking in the parser every function as “containing eval”, since debugging can be considered from the point of view of the debugged program as “anything can be eval()'d anytime, anywhere”).
Attila. > On Oct 9, 2015, at 3:01 PM, Hannes Wallnoefer <hannes.wallnoe...@oracle.com> > wrote: > > Please review JDK-8131929: Add option for debuggable scopes > > http://cr.openjdk.java.net/~hannesw/8131929/ > > This contains a fair bit of cleanup (like putting most of Options.properties > into lexicographical order). The actual change is pretty simple and consists > of adding the --debug-scopes option and setting a flag in Parser. > > Thanks, > Hannes