InfoMatters Home Page Search the Site

This page lists news items related to the InfoMatters, Inc.. Here is the detail record you chose. You may also Search for other items.

Conditionally Turning on Debug (by IP address)

a Tango Tips & Tricks written by Chris Ogden 8/19/1999   

The following was posted to Tango Talk...

At 8:06p -0600 8/18/99, Robb Roaten wrote:
>Is there a function in Tango that will let you specify an IP
>address to show the debug info (dev workstations) while the rest
>of the world sees it as it should be?

Sure. Piece of cake. Put the following in a TAF (we have a set of standard calls we use) and change the IP address (xxx.xxx.xxx.) to either your Class C or your specific address. Then, you can call the TAF and it will toggle debug on/off simply for one person or a range of people.Note: to limit it to a particular IP address, complete the last part of the IP address (ie, xxx.xxx.xxx.xxx)...

 
<@IF '<@CGIPARAM CLIENT_IP> contains "xxx.xxx.xxx."'>
<@IF '@@user$debugMode = forceOn'>
<@ASSIGN user$debugMode 'appFileSetting'>
Debug was turned OFF for the user from '<@CGIPARAM CLIENT_IP>'.
<@ELSE>
<@ASSIGN user$debugMode 'forceOn'>
Debug was turned ON for the user from '<@CGIPARAM CLIENT_IP>'.
<@/IF>

<@ELSE>
<@ASSIGN user$debugMode 'appFileSetting'>
<@/IF>

 

Please use your browser's "back" button to return to the previous page to access other items, or you may wish to Search for other items.


If you'd like... you can be automatically notified when this page changes, rate this page by casting your vote, Join Our Mailing List, or Give Us Feedback!


Corporate Background | Our Approach | Our Products & Services | Our Team
Our Team's Client Portfolio | What's New | Your Investment | Get More Info | Jobs | Search This Site | About This Site

portions of this website copyright 1997, InfoMatters,Inc.