If you hover over a property of an undefined variable, ncdbg logs an error:
Code evaluation failed.
com.programmaticallyspeaking.ncd.nashorn.InvocationFailedException: Invocation failed: jdk.nashorn.internal.runtime.ECMAException: TypeError: Cannot read property "toString" from undefined
at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:57)
at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:213)
at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:185)
at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:172)
at jdk.nashorn.internal.runtime.Undefined.get(Undefined.java:157)
at jdk.nashorn.internal.scripts.Script$15$\^eval\_.:program(<eval>:1)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:623)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
at jdk.nashorn.internal.runtime.Context.eval(Context.java:736)
at jdk.nashorn.internal.runtime.Context.eval(Context.java:671)
If you hover over a property of an undefined variable, ncdbg logs an error:
The message:
This ought to be handled in a nicer way, especially since silent is true.