During an Eclipse debugger session in the eclipse debugging view, it is possible to change arbitrary primitive variables and even Strings.
I wonder why it does not seem possible to change variable references to objects as well. E.g. if there is something like
ClassLoader cl = ClassLoader.getCallerClassLoader()
in the code I'd like to be able to bind the variable ("change its value" in a relaxed sense) to
cl = Thread.currentThread().contextClassLoader
during debugging.
Am I wrong (it is possible to do this) and if not, are there any conceptional reasons (so other reasons than "nobody simply has done this yet")?