| 145 | |
| 146 | === Using panc debugging === |
| 147 | |
| 148 | Version 8.2.4+ of the Pan compiler allows selective output of debugging statements. You can use debug statements freely in templates, and then select when running the compiler which templates should output the debug information. This is done by specifying a set of include and exclude patterns that select sets of templates. You can use this from SCDB via options to ant as follows: |
| 149 | |
| 150 | |
| 151 | For example to only output debug from templates with name starting "xen/": |
| 152 | {{{ |
| 153 | ant -Dpan.debug.include='xen/.*' |
| 154 | }}} |
| 155 | |
| 156 | Or to exclude debugging from all the spma and pan templates but display it from all the rest: |
| 157 | {{{ |
| 158 | ant -Dpan.debug.exclude='.*/spma/.*|pan/.*' -Dpan.debug.include='.*' |
| 159 | }}} |