Edgewall Software

Changes between Version 20 and Version 21 of TracDev/PluginDevelopment


Ignore:
Timestamp:
Jul 3, 2007, 12:13:04 AM (13 years ago)
Author:
khundeen@…
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/PluginDevelopment

    v20 v21  
    5454}}}
    5555
    56 Look at the API documentation for the extension point interfaces to see what you're expected to return.
     56Look at the API documentation for the extension point interfaces to see what you're expected to return.  See the [http://trac-hacks.org/wiki/tutorial tutorial] page for more plugin tutorials.
    5757
    5858== Component member variables ==
     
    142142}}}
    143143
     144== Debugging ==
     145The logging API is very good debugging tool.  Simple use this code when you want to view value of a variable:
     146
     147{{{
     148  env.log.info(varname) or self.env.log.info(varname)
     149}}}
     150
     151You need to turn on logging in the trac.ini file.  Info level log is not as often as debug level.  Thus it is very good way to debug the plug-in code.  However, you should use debug method if you want to leave the code when you finish developing the plug-in. 
     152
    144153----
    145154See also: TracDev, TracDev/ComponentArchitecture, TracPlugins