Skip to content
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

Source Maps troubleshooting #4

Open
bolerio opened this issue Oct 10, 2018 · 2 comments
Open

Source Maps troubleshooting #4

bolerio opened this issue Oct 10, 2018 · 2 comments

Comments

@bolerio
Copy link

bolerio commented Oct 10, 2018

I integrated by copy & pasting from the sample code, I'm loading a file from the file system and it's a webpack environment. Source maps show when the same code is accessed via a web server and a Chrome instance. But when loading with WebView, the source maps are not found, and it's hard to debug a minified version. Is there any way to make source maps accessible via the debugger?

@bolerio
Copy link
Author

bolerio commented Oct 11, 2018

Ok, I got pass that. So feel free to close this.

However, the debugging is not stopping on breakpoints. I downgraded to the version of Chrome you recommend. I couldn't downgrade to Java 8 u151, I have to u181 because my app doesn't run on older Webkit. Any idea how to troubleshoot? I see lots of chatter on the Java console about debug protocol messages being received and sent....

Anyway, thanks for great work and effort, must be really painful to work on and debug this stuff!

@vsch
Copy link
Owner

vsch commented Oct 15, 2018

@bolerio, debugger code is a real PITA to debug because of threading issues and async processing with the limitations that JavaFX script debugger cannot handle some async recursion.

Requests originate in one thread and must be passed to the debugger on the JavaFX thread while keeping track of state to avoid crashing the JavaFX debugger. At the same time, you cannot arbitrarily allow a thread to yield because then events can occur out of order. It is a trial and error process working with logs which spew out tons of text.

I get the hives just thinking about going in to debug this code again. 😟

I will take a look to see what causes can be caught by the code to flag initialization quirks which can cause break points not to trigger. However, I noticed that debugger not triggering occurs if there is an initialization failure to inject debugger code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants