Groovy script debugging is supported in the eclipse. Groovy script engine allows to execute scripts parsed from the string.
ScriptEngineFactory factory = new GroovyScriptEngineFactory();
ScriptEngine scriptEngine = factory.getScriptEngine();
Bindings bindings = scriptEngine.createBindings();
scriptEngine.eval("println 'hello world'", bindings);
Groovy script engine creates "a class" with the name 'Script1.groovy' in the memory and executes the script.
I would like to provide an access to this in memory source and debug it.
One possibility could be to create a file 'Script1.groovy' in the source path before script evaluation and put break point into it.
In that case SourceLocator finds the source and the breakpoint and execution is stopped in the class.
What I would like to achieve is to provide sources from the groovy script engine, which stores them in memory.
Is it possible? How can I do that?
Thank you in advance for your help.