lexandera / Aardwolf

A remote JavaScript debugger for Android/iOS/WindowsPhone7/BlackBerry6. Written in JavaScript.
http://lexandera.com/aardwolf/
MIT License
320 stars 39 forks source link

Support for breaking before nested statements #6

Open lexandera opened 13 years ago

lexandera commented 13 years ago

Currently a debug statement is inserted only in front of the first of the nested statements, like this:

debugCode();
foo(bar(quux()));

It should be possible to use comma-separated groups of statements in the form of (funA(), funB()) for inserting debugging calls into nested code.

After this change, the generated code would look something like this instead:

(debugCode(), foo((debugCode(), bar((debugCode(), quux())))))