On Tue, 22 Feb 2011 16:55:31 -0800 (PST)
Ivanov Dmitriy <[email protected]> wrote:

> Can somebody tell me, how to effectively program leo plugins, so I
> won't need to restart leo after I modify the code, so it would load
> the new plugin again?

You can usually get all the functionality sorted out in @button nodes,
the 

  exec(g.findTestScript(c,'@common my common code'))

pattern can be used to let different buttons use the same core code.
Then, when everything works, you can do the conversion to a plugin.

In some cases using pythons reload command might be helpful, but I
suspect the @button route is simpler.

> And how to debug?

I just stick print statements into the code :-)  Of course that assumes
quickly executing the code is easy, but that's the case using the
@button route.

Cheers -Terry

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to