mozilla / shumway

Shumway is a Flash VM and runtime written in JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Debugging/Logging shumway errors

arianitu opened this issue · comments

What's the proper way to debug shumway with shuobject? Right now I've been adding trace() everywhere and those get logged to the console. I cannot get this particular swf to work in the inspector because I can't find a way to specify flashvars (I noticed you can specify it in the url, but my flashvars are way bigger than the maximum url length)

I've been building shuobject using master (grunt build web)

The issue is, shumway is silent when it hits some code that's broken. As an example, if shumway tries to access a property of a null object, it just doesn't say anything, but stops execution.

It makes it really hard to debug, is there a known way to make shumway more verbose?

Edit:

Also if there is a VM error, what's the proper way to step through the VM to figure out what the problem is? I guess how are the developers of this project debugging/testing swfs?