-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug JavaScript with Safari stuck when press Continue
or Step over
#946
Comments
Hi, thanks for the reporting this issue. I was able to repro it. I'll do some investigation and see if I can find a solution. Hopefully it's not a Safari bug :) |
I tested on another version of Safari but it was still broken. Do you happen to know if there's a version of Safari/MacOS/BabylonNative where this did work? We think it may have worked at one point, but we're not sure. |
I investigated this a tiny bit. It looks like calling //engine.runRenderLoop(function () {
// scene.render();
//}); I also tried just running the render loop with nothing in it, but this also breaks the JSC debugger. engine.runRenderLoop(function () {
// scene.render();
}); |
The reason why this doesn't work is because the main thread is blocked and can't receive messages from the debugger. We need to rework the way rendering work to fix this. See #1416. Closing as fixing the other issue should fix this. |
Hey @bghgary this makes sense, this is still an issue and makes debugging very difficult - you've linked back to the same thread, is there another issue that's tracking this and are there any temporary work arounds in the meantime? Thanks :) |
Oops, I fixed the link. It should be #1416. Unfortunately, I don't know of a workaround. I know this is annoying. The fix is unfortunately a bigger change to how rendering works and will take some time before we can get to it. |
Describe the bug
I tried to debug javascript with safari for iOS target and macOS target.
The Safari connected to the JSC successfully.
I can see the console, view the source code, put a breakpoint,
and the JSC stoped at the breakpoint.
But when I click
Continue
orStep over
, the gui just stuck and nothing happened.Tried debug for iOS target and macOS target, all the same situation.
To Reproduce
Steps to reproduce the behavior:
experience.js
babylon.max.js
orexperience.js
.Continue
orStep over
does not has any effect.Expected behavior
Continue
orStep over
should work.Screenshots
Other
The text was updated successfully, but these errors were encountered: