Pavel Vlasov
Pavel Vlasov

Reputation: 4341

Debug print from a bootstrapped Firefox4 extension

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

Answers (2)

Tyler
Tyler

Reputation: 22136

It could be that window.dump is not enabled. See https://developer.mozilla.org/en/window.dump

Upvotes: 0

Related Questions