Pydev and Mercurial

Peter Arrenbrecht peter.arrenbrecht at gmail.com
Tue Apr 28 03:01:20 CDT 2009


On Tue, Apr 28, 2009 at 5:38 AM, Siddharth Kalra <crulshorukh at gmail.com> wrote:
> Greetings,
> I've been trying to setup Pydev to work with Mercurial's source so that I
> can debug it. I'm wondering whether somebody has been successful in doing
> that? If the answer is yes, then I'd love to know how they did it.
> My problem seems to be that debugging in Pydev requires that you specify a
> python file that is the main module. I'm not sure what the main module would
> be for Mercurial. I've tried looking through the source but haven't been
> able to find it. Would anybody know?

I do this regularly. Simply choose any .py file (for example,
proj/mercurial/dispatch.py) as the debuggee. Then change this manually
to just proj/hg. You need to do this manually because PyDev filters
files not ending in .py in the select dialog.

Also be sure to set an appropriate working dir.

-parren


More information about the Mercurial-devel mailing list