Developing with Eclipse

Eclipse offers an comfortable IDE environment for developing and debugging.

Setting up Eclipse and plugins

Install Eclipse.

Install the pydev plugin (now published under the EPL and is free... :) and the mercurial plugin.

Get Hanji source

  • File menu -> Import
  • Mercurial -> Clone existing Mercurial repository: http://hanji.info/hgweb.cgi
  • Give a title to your project (hanji_project).

Set the run/debug configuration

Menu Run -> Debug configurations.
  • Click the New launch configuration button and give a name (eg debug_hanji).
  • Choose the Eclipse project created just before
  • Main module: hanji/twistd.py
  • Program arguments: -n --pidfile=8899.pid hanji --base-directory=. --settings=hanji.settings --debug --port=8899

Start the debug configuration to set breakpoints, watch variables, as described in the Eclipse and PyDev documentation.

Table Of Contents

Previous topic

Android package

Next topic

Developing rich web interfaces with Javascript

This Page