Changes between Version 13 and Version 14 of TracTroubleshooting
- Timestamp:
- Jun 4, 2015, 6:37:40 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracTroubleshooting
v13 v14 54 54 As this template engine is also written in Python, no specific data format is needed and a simple Python dictionary is used to feed the engine. It's very easy to inspect any part of this data by modifying the template and inserting `${pprint(...)}` statements, possibly in between `<pre>...</pre>` tags. 55 55 Each modification to a template will be detected on the fly and you'll be able to see the result of the change immediately, provided you have the following setup in your TracIni: 56 {{{ 56 {{{#!ini 57 57 [trac] 58 58 auto_reload = yes … … 69 69 Best is to start from a [TracSubversion checkout] of the pristine source code you're interested to debug or develop for. 70 70 Then, you can run the standalone server by doing: 71 {{{ 71 {{{#!sh 72 72 $ python scripts/tracd <options> 73 73 }}} 74 74 75 75 If you're using [source:trunk] (Trac [milestone:0.11]dev), since the SetupTools integrations, you'll have to run the standalone module directly: 76 {{{ 76 {{{#!sh 77 77 $ python trac/web/standalone.py <options> 78 78 }}} 79 79 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: 80 {{{ 80 {{{#!sh 81 81 $ python setup.py egg_info 82 82 }}} … … 96 96 97 97 Getting a backtrace for `tracd`: 98 {{{ 98 {{{#!sh 99 99 $ gdb $(which python) 100 100 (gdb) run /opt/trac-0.10/scripts/tracd -p 8080 /srv/trac/yourproject … … 103 103 104 104 Getting a backtrace for Apache's `httpd` can be done in a similar way: 105 {{{ 105 {{{#!sh 106 106 $ apachectl -k stop 107 107 $ gdb $(which httpd) … … 115 115 116 116 Here it might be interesting to just "attach" to an already running process: 117 {{{ 117 {{{#!sh 118 118 $ ps -ef | grep httpd 119 119 ...