Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
vvvv.js does not show up in Chrome's debugging tools #6
Yeah, that is in fact pretty annoying.
For VVVV.js dynamically loading the scripts has two purposes:
As far as my research went so far (without actually trying), other methods like head.js or $.loadScript will result in the same problem.
However, for development/debugging purposes I use to have an HTML file loading the scripts statically. initVVVV() will then not dynamically load them, if already present.
Of course, that's not at all satisfying, and needs some better solution. Any hints very much appreciated.
i am currently rewriting it to use the default DOM-Script syntax like this:
This works for the debugging part, but it appears to alter the load-order, so that this line will fail https://github.com/zauner/vvvv.js/blob/master/vvvv.js#L71 (fails because VVVV.Core.VVVVConnector is
I'll try some more. If i succeed i'll post a pull-request.
it's not ready for prime-time, yet, but i'd like your opinion on this one:
Loading will add the dom-elements (asynchronously loaded), it counts the number of inserted elements (
You'll then have to use a callback in your actual code (since you need to wait for completion as well), i demonstrate this in example 01_canvas_arcs. If you're satisfied, i'll of course alter the other examples as well.
Let me know what you think.
another possibility would be to set script.async = false (i haven't tested this yet, but it should have the same effect as before). I don't think this is the better choice, though. Whenever vvvv.js is only one piece of the puzzle, i'd rather avoid blocking other people's scripts.
Ok, just tried it -- pretty cool.
Firefox however complains about not enough arguments for removeEventListener, it seems to need the callback as the second argument.
Regarding example 9: I adjusted it by removing the "static"
Which errors did you experience with example 9? If it's just a blank screen, that's perfectly ok, since the example is all about connecting to VVVV and live patching