{{ Debug( ON,ID={%DEBUG_USERS, CONFIG%},IP={%DEBUG_IPS,CONFIG%} ) }} {{ StartService( MAINPROGRAM ) }} {{ Debug( OFF ) }}
Then, create or edit the web.config file in the directory containing the .srf file (or any parent) and add the variables below:
<app.config> <configuration> ... <configSections> <sectionGroup name="BIS"> <sectionGroup name="Config"> <section name="Variables" type="System.Configuration.NameValueSectionHandler,System"/> </sectionGroup> </sectionGroup> </configSections> ... <BIS> <PreRender> <add tag=”Debug(ON,ID=Users,IP=ANY” /> </PreRender> <Config> <Variables> <add key="DEBUG_USERS" value="[spaced-list]"/> <add key="DEBUG_IPS" value="[spaced-list]"/> ... </Variables> </Config> </BIS> ... </configuration> </app.config>
{{ Debug( ON, IP=127.0.0.1 ) }} {{ Debug( OFF ) }} {{ StartService( MAINPROGRAM ) }}
Debugging of MAINPROGRAM will be disabled. However, in this case:
{{ Debug( ON, IP=127.0.0.1 ) }} {{ StartService( MAINPROGRAM ) }} {{ Debug( OFF ) }}
Debugging of MAINPROGRAM will be. Subsequent programs will not be debugged unless an intervening {{ Debug(ON) }} is rendered and a new ID and optional IP restriction is set.