Create Debug Configuration#

  1. Make sure you are running Eclipse in Pydev mode
  2. Select Run -> Debug Configurations ...
  3. "Python Run" should be selected in the "Debug Configurations" pop-up
  4. Click the left-most icon on the upper left that says "New launch configuration" when you hover over it

Configure new configuration#

Main Tab#

  1. "Project" should have name of your current Pydev project
  2. "Main Module" should have ${workspace_loc:PROJECT_NAME/path/to/manage.py} or something similar (including the manage.py)
  3. PYTHONPATH should have the contents of your site-packages and your project folder

Arguments Tab#

  1. "Program arguments" should have runserver --noreload PORT_NUMBER
  2. "Working directory" should have ${workspace_loc:PROJECT_NAME/path/to/manage.py} *without* the manage.py

Running#

Now you can click on the arrow next to the debug icon and select the configuration you just made. You can also select Run -> Debug As and select the configuration you just made.


CategoryArchived.Computing.IDE.Eclipse - CategoryArchived.Computing.Lang.Python.Django