Reputation: 4341
I'm rewriting a Firefox extension to be bootstrapped (restartless). I've patched rdf with a node < bootstrapped >. Then I introduced file "bootstrap.js":
function startup(data, reason) { dump("startup") }
function void shutdown(data, reason) {}
The extension was installed visually correctly and it stopped to work (that means correctness too). But I have no clue how to debug my extension without debug prints: dump() does not work (jconsole stays empty), alert() too. I'm not sure even the function startup() had been invoked actually. How to make sure?
Upvotes: 3
Views: 598
Reputation: 16558
See part 5 of my restartless firefox addon series, on logging: http://erikvold.com/blog/index.cfm/2011/4/1/restartless-firefox-addons-part-5-logging
Upvotes: 3
Reputation: 22136
It could be that window.dump is not enabled. See https://developer.mozilla.org/en/window.dump
Upvotes: 0