On Tue, Feb 11, 2014 at 5:51 AM, Franz <[email protected]> wrote:
[...]
>
> thanks for the hint. Using only one thread works fine for all sources
> inside of Trac Core. But when I try to debug plugin code with PyDev[1] it
> calls the interface, but not the plugin code.
>
> For example: I currently extend LogViewerPlugin [2]; this plugin
> implements IAdminPanelProvider. When I set an breakpoint at method
> "render_admin_panel" in plugin code PyDev won't enter it. When I set the
> breakpoint in trac/admin/web_ui.py inside method
> "AdminModule.process_request" it will enter the debug mode. Strangely I see
> the variables of the plugin in View "Variables", when it enters
> "provider.render_admin_panel(req, cat_id, panel_id, path_info)", but the
> Debugger only shows class "AdminModule(Component)".
>
> I already tried to add "Project Reference" and "External > Source Folder"
> to project properties, but nothing worked. Do you have any idea how this
> could work?
>
>
I'm not sure I understand all the details involved (because most of it
depends on your particular setup I guess) but , if this is about
integrating source code into the PyDev debugger , then what I do often is
to :
1. ensure plugin is enabled in the environment under test
(... otherwise it is ignored in the extension point lookup/list logic
;)
2. create a virtualenv and setup.py develop target plugin then plugin
sources
will be listed in System libraries (might require clicking somewhere
in Eclipse UI)
and debugger tracing has always worked for me that way .
[...]
--
Regards,
Olemis - @olemislc
Apache(tm) Bloodhound contributor
http://issues.apache.org/bloodhound
http://blood-hound.net
Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/
Featured article:
--
You received this message because you are subscribed to the Google Groups "Trac
Development" 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].
Visit this group at http://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/groups/opt_out.