wiki:DeveloperDocumentation

Version 3 (modified by kiesel, 16 years ago) (diff)

console vs. dump

How to debug a Firefox/Thunderbird plugin

  • Check out the Dragontalk plugin of choice in Eclipse
  • Use build.xml to build the plugin
  • Install the plugin in Firefox/Thunderbird
  • Install Venkman (JavaScript debugger) in Firefox/Thunderbird
  • Open Venkman (Tools/JavaScript Debugger)
  • Deselect "Debug/Exclude Browser Files"
  • Search for "DFKI" in Loaded Scripts pane
  • Open a script of your choice
  • Set a breakpoint (single click left from source line)

Using the debugger to step through the plugin's and Mozilla's code is probably simpler than going through docs.

If you want to add new functionality, have a look at the numerous existing Firefox/Thunderbird plugins to get an idea how things are done.

For enabling the console (the place dump messages go to) see http://gnowsis.opendfki.de/wiki/MozillaDeveloping .