Edgewall Software

Changes between Version 11 and Version 12 of TracDev/DevelopmentWithEclipseAndPyDev


Ignore:
Timestamp:
Aug 20, 2008, 10:51:26 PM (16 years ago)
Author:
Joachim Hoessler <hoessler@…>
Comment:

fixed layout

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/DevelopmentWithEclipseAndPyDev

    v11 v12  
    7979
    8080 1. Install [http://www.eclipse.org Eclipse] (3.3 or newer will do)
     81
    8182 2. Install [http://pydev.sourceforge.net PyDev]
    82  3. Also either [http://subclipse.tigris.org Subclipse] or [http://www.eclipse.org/subversive/ Subversive] is good to have for integrated support to SVN.
     83
     84 3. Also either [http://subclipse.tigris.org Subclipse] or [http://www.eclipse.org/subversive/ Subversive] is good to have for integrated support of SVN.
    8385
    8486 4. In Eclipse, make sure that the PYTHONPATH in the project properties dialog includes the sources for trac.
    8587
    86  5. Create an initial run configuration by clicking right on ''trac/web/standalone.py file'', and choosing ''Run As->Python Run''.
    87 trac will complain that no environment has been set.
     88 5. Create an initial run configuration by clicking right on ''trac/web/standalone.py file'', and choosing ''Run As->Python Run''. Trac will complain that no environment has been set.
    8889
    89  6. Select ''Run->Open Run Dialog...'' and set the correct command line arguments in the ''arguments'' tab, eg.
    90 ''--port 8000 /path/to/myproject''[[BR]]
    91 Note that the option --auto-reload will cause tracd to restart every time source code has been changed, but it seems to prevent debugging with pydev. This seems to have something to do way Trac reloads new instance as a child thread using "thread" library which doesn't seem to be compatible with pydev debugging. Googling revelead some hints that instead using "thread"-module you should use "threading"-module (higherlevel)
     90 6. Select ''Run->Open Run Dialog...'' and set the correct command line arguments in the ''arguments'' tab, eg. ''--port 8000 /path/to/myproject''.
     91 Note that the option --auto-reload will cause tracd to restart every time source code has been changed, but it seems to prevent 
     92 debugging with pydev. This seems to have something to do way Trac reloads new instance as a child thread using "thread" library which
     93 doesn't seem to be compatible with pydev debugging. Googling revelead some hints that instead using "thread"-module you should use
     94 "threading"-module (higherlevel)
    9295
    9396 7. You should now be able to run tracd, as well as to debug it using the same run configuration. To run the test cases, just click on a test folder and select ''Run->Python unit tests''
    9497
    9598 8. To debug a plugin, deploy it into your test environment via
    96 {{{
    97 $ python setup.py develop -md /path/to/projenv/plugins
    98 }}}
    99 and then start the run configuration from above.
    100 
    101 If you are experiencing troubles in debugging Trac code, make sure that PYTHONPATH in project properties doesn't contain pointers to other Trac sources. Otherwise those sources will be picked instead checked out.
     99 {{{
     100 $ python setup.py develop -md /path/to/projenv/plugins
     101 }}}
     102 and then start the run configuration from above.
     103 If you are experiencing troubles in debugging Trac code, make sure that PYTHONPATH in project properties doesn't contain pointers to other Trac sources. Otherwise those sources will be picked instead checked out.
    102104
    103105Note: It could be wise to setup virtualenv and install genshi, babel etc. there. Then debugging is easier and it doesn't interfere with existing Trac sources.