Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 204
Pavel Vlasov Avatar asked Jan 27 '26 16:01

Pavel Vlasov


1 Answers

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

like image 114
erikvold Avatar answered Jan 30 '26 17:01

erikvold



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!