ITCOOKBOOK.com

 Options

Current Time:
Thu Sep 09, 2010 10:39 am
View unanswered posts

Log in

Username:
Password:
Log me on automatically each visit

Topic Information

Programmatically access debugging IPS

 
Post new topic   Reply to topic    ITCOOKBOOK.com Forum Index -> ColdFusion MX7
View previous topic :: View next topic  
Author Message
JP
Fresher


Joined: 02 Dec 2006
Posts: 19
Location: New York, NY

PostPosted: Sun Dec 03, 2006 10:49 pm    Post subject: Programmatically access debugging IPS Reply with quote

I'm currently working for a company which has several CFMX 6.1 servers hosting in a shared environment. Until a few days ago, we were having a very poor time keeping the public facing servers up with no JRUN server errors. We recently turned off debugging on ALL production systems and this seems to have fixed our issues. However, it would be nice to see the debugging information (limited by IP) without going into the administrator and turning debugging on.

I want to have a <if></if> structure capture the CGI.REMOTE_ADDR of the client, and try to match against that list. If true, show the CGI, SERVER, APPLICATION, etc. at our custom error template.

Is there some way to do a call or read in a file that grabs the debug IPs from the CF admin site at runtime?
Back to top
View user's profile Send private message
cindy
Member


Joined: 02 Dec 2006
Posts: 22

PostPosted: Sun Dec 03, 2006 10:50 pm    Post subject: Reply with quote

In CF6 you can use the service factory to turn debugging on and off and to manipulate the debugging IP's. (CF7 has the more superior and supported/official Admin API.)

An introduction to the service factory is here: http://cfdj.sys-con.com/read/41652.htm

Here is a working code that you can start with:

http://www.cflib.org/udf.cfm?id=1030&enable=1
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ITCOOKBOOK.com Forum Index -> ColdFusion MX7 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Help US Help YOU

 

 

Please complete our short survey and save $17.50 on ITCOOKBOOK.COM.

 

 

Take a look at SAPTrends.com, a new blog dedicated to discussion of SAP Training trends in SAP ERP.

 

 

C# Interview Questions

 

.NET Interview Questions

 

Java Interview Questions

 

Python Interview Questions

 

ColdFusion Interview Questions

 

Linux Interview Questions

 

Linux LPIC 1 Certification Questions

 

Perl Programming Interview Questions