You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from Standard.Base import all
main =
txt = "Hello"
Standard.Base.Runtime.Debug.breakpoint
IO.println "DONE"
with:
enso --inspect --run tmp.enso
And attach chrome inspector. Then just click on continue in the inspector. Then, there will be unexpected failure:
Debugger listening on ws://127.0.0.1:9229/enso_debug
For help, see: https://www.graalvm.org/tools/chrome-debugger
E.g. in Chrome open: devtools://devtools/bundled/js_app.html?ws=127.0.0.1:9229/enso_debug
/home/pavel/tmp/tmp.enso:4:5: warning: Unused variable txt.
4 | txt = "Hello"
| ^~~
WARNING: Instrumented node DebugBreakpointNodeGen@3c488b34 of class class org.enso.interpreter.node.expression.builtin.debug.DebugBreakpointNodeGen has null SourceSection.WARNING: and null encapsulating SourceSection under DebugBreakpointMethodGen@32e697ac of class = class org.enso.interpreter.node.expression.builtin.debug.DebugBreakpointMethodGenExecution finished with an error: java.lang.NullPointerException: Cannot invoke "com.oracle.truffle.api.source.SourceSection.getSource()" because "ss" is null
at <java> com.oracle.truffle.tools.chromeinspector/com.oracle.truffle.tools.chromeinspector.InspectorDebugger$SuspendedCallbackImpl.onSuspend(InspectorDebugger.java:1104)
at <java> org.graalvm.truffle/com.oracle.truffle.api.debug.DebuggerSession.doSuspend(DebuggerSession.java:1307)
at <java> org.graalvm.truffle/com.oracle.truffle.api.debug.DebuggerSession.processBreakpointsAndStep(DebuggerSession.java:1275)
at <java> org.graalvm.truffle/com.oracle.truffle.api.debug.DebuggerSession.notifyCallback(DebuggerSession.java:1081)
at <java> org.graalvm.truffle/com.oracle.truffle.api.debug.Breakpoint.doBreak(Breakpoint.java:883)
at <java> org.graalvm.truffle/com.oracle.truffle.api.debug.Breakpoint.doBreak(Breakpoint.java:831)
at <java> org.graalvm.truffle/com.oracle.truffle.api.debug.Breakpoint$AbstractBreakpointNode.onNode(Breakpoint.java:1470)
at <java> org.graalvm.truffle/com.oracle.truffle.api.debug.Breakpoint$BreakpointBeforeNode.onEnter(Breakpoint.java:1285)
at <java> org.graalvm.truffle/com.oracle.truffle.api.instrumentation.ProbeNode$EventProviderChainNode.innerOnEnter(ProbeNode.java:1499)
at <java> org.graalvm.truffle/com.oracle.truffle.api.instrumentation.ProbeNode$EventChainNode.onEnter(ProbeNode.java:980)
at <java> org.graalvm.truffle/com.oracle.truffle.api.instrumentation.ProbeNode.onEnter(ProbeNode.java:226)
at <java> org.enso.runtime/org.enso.interpreter.node.expression.builtin.debug.DebugBreakpointNodeWrapper.execute(DebugBreakpointNodeWrapper.java:44)
at <java> org.enso.runtime/org.enso.interpreter.node.expression.builtin.debug.DebugBreakpointMethodGen.execute(DebugBreakpointMethodGen.java:101)
at <enso> Debug.breakpoint(Internal)
at <enso> tmp.main(tmp.enso:5:5-42)
Expected behavior
The expression Standard.Base.Runtime.Debug.breakpoint should behave exactly like setting a breakpoint in chrome inspector directly in the file.
The text was updated successfully, but these errors were encountered:
Run the following code:
with:
And attach chrome inspector. Then just click on continue in the inspector. Then, there will be unexpected failure:
Expected behavior
The expression
Standard.Base.Runtime.Debug.breakpoint
should behave exactly like setting a breakpoint in chrome inspector directly in the file.The text was updated successfully, but these errors were encountered: