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
If I click on Sunflower.drawSeed or Sunflower.function, the focus appears to be set correctly. If I click on Sunflower.drawFrame, focus moves to the line:
library('sunflower');
Editor build 6943, dartium build 6934, linux 64-bit.
The text was updated successfully, but these errors were encountered:
I was able to reproduce this. Interestingly enough, if you set the breakpoint and then run the app, the reported line location for the drawFrame() method is correct. It's only when you run the app and then set the breakpoint that the line location is off.
There is an explanation for what Devon observes. If the code in which you set a breakpoint is not compiled yet, the VM will remember the desired line location for the BP, which is the one that you say is 'correct'. Then, when the code gets compiled (or if it is already compiled because the function was executed before), the line location gets moved to the actual location that is recorded in the debugging info.
That said, the debugging info we have is sometimes incorrect, that's why you see the wrong line number. Improving the debug info accuracy is on my to do list.
I am running the Sunflower demo.
I set a breakpoint in drawSeed on this line: ctx.fillStyle = ORANGE;
Then changed the slider to hit the breakpoint.
If I click on different frames in the stack view in the debugger, I get an exception each time (see issue #2830), but focus does change in the editor.
The stack looks like:
Sunflower.drawSeed
Sunflower.drawFrame
Sunflower.function
...
If I click on Sunflower.drawSeed or Sunflower.function, the focus appears to be set correctly. If I click on Sunflower.drawFrame, focus moves to the line:
library('sunflower');
Editor build 6943, dartium build 6934, linux 64-bit.
The text was updated successfully, but these errors were encountered: