Debugging extensions with Dragonfly
Friday, December 23, 2011 4:19:32 PM
A few days ago I found a message where it was said that there is no way to connect debugger to background process.
And this is partly true: some part of code is being executed with onload event. And if we can put breakpoints to debug code that is triggered by other events (e.g. onmessage), there still is a problem with a part of code mentioned above.
Of course, it is possible to use console.log() or opera.postError(), but Dragonfly is preferable. So I decided to reinvent the wheel and find a way to debug every single line in extension code.
And this is partly true: some part of code is being executed with onload event. And if we can put breakpoints to debug code that is triggered by other events (e.g. onmessage), there still is a problem with a part of code mentioned above.
Of course, it is possible to use console.log() or opera.postError(), but Dragonfly is preferable. So I decided to reinvent the wheel and find a way to debug every single line in extension code.






