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) |
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. |