On Thursday, January 12, 2017 at 5:27:55 PM UTC+7, [email protected] 
wrote:
>
> So I'm attempting to write a plugin, but i'm at a loss as to how I debug 
> it - even as far as just knowing the plugin is loaded.
>

I find a good way to get into any python program is to just slap a python 
debugger break point where I'm interested and then run the script.

import pdb; pdb.set_trace()

Then you can run bean-report or bean-check or anything else. You can look 
at the stack and generally figure out how things go to where they are.

The docs on writing plugins 
https://docs.google.com/document/d/1QftxNvQPdH-MikMBHupftU6F4IsNZP5FlFh1LCbVgk8/edit#heading=h.yshh8f17jbdb
 
have a simple example (look for accounting.wash_sales) that can help you 
get started, too.

Does that help, or did you mean something else? 

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/a624f6c4-2e51-406b-9d20-4bdee1850464%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to