Changes between Version 20 and Version 21 of TracTroubleshooting
- Timestamp:
- May 15, 2017, 7:58:42 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracTroubleshooting
v20 v21 69 69 TracStandalone is the indispensable companion whether you intend to develop or debug Trac. In particular, check out the `-r` (auto-reload) feature, which will make Trac notice any change to one of its source file and restart automatically. You can therefore see Trac react immediately to your code changes, provided you don't have syntax errors outside of a method. 70 70 71 In this setup, you're free to try out modification , dump additional information to the log or insert direct `print` statements; an ugly but effective way of debugging.71 In this setup, you're free to try out modifications, dump additional information to the log or insert direct `print` statements; an ugly but effective way of debugging. 72 72 73 It may even be possible to run `tracd` with a debugger, but not explored here.73 It may even be possible to run `tracd` with a debugger, but that is not explored here. 74 74 75 75 Best is to start from a [TracSubversion checkout] of the pristine source code you're interested to debug or develop for. 76 76 Then, you can run the standalone server by doing: 77 77 {{{#!sh 78 $ python scripts/tracd <options>78 $ tracd <options> 79 79 }}} 80 80 81 If you're using [source:trunk] (Trac [milestone:0.11]dev), since the SetupTools integrations, you'll have to run the standalone module directly: 81 Note that the very first time in a fresh working copy, you'll have to install the code in develop mode: 82 82 {{{#!sh 83 $ python trac/web/standalone.py <options> 84 }}} 85 86 Note that the very first time in a fresh working copy, you'll have to at least initialize the ''Trac.egg-info'' folder, by doing: 87 {{{#!sh 88 $ python setup.py egg_info 83 $ python setup.py develop 89 84 }}} 90 85