Changes between Version 3 and Version 4 of DeveloperDocumentation


Ignore:
Timestamp:
08/29/08 17:59:48 (16 years ago)
Author:
kiesel
Comment:

Exception notes

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperDocumentation

    v3 v4  
    1515If you want to add new functionality, have a look at the numerous existing Firefox/Thunderbird plugins to get an idea how things are done. 
    1616 
    17 For enabling the console (the place '''dump''' messages go to) see http://gnowsis.opendfki.de/wiki/MozillaDeveloping . 
     17For enabling the console (the place '''dump''' messages go to) see http://gnowsis.opendfki.de/wiki/MozillaDeveloping . You may have to enable dump in '''gnowsis_dump()'''. 
     18 
     19== General Hints == 
     20 * Use '''try {...} catch(e) { dump(e); alert(e); }''' in abundance. Uncaught exceptions typically vanish in the depths of Mozilla and are hard to find without lots of debugging. 
     21   * '''Never''' swallow exceptions, always at least dump() them unless you really know what you are doing.