If you’re like me, you turn debugging on/off often on your development box. I got tired of going into the CFAdmin to do this, so I built a little script that lets me put in my CF Admin password, and then toggle the debugging output.The only weird thing is that if you turn debugging on, it doesn’t show on this page immediately, but it will show up after a page refresh. I thought other people might find this useful:
adminObj = createObject("component","cfide.adminapi.administrator"); adminObj.login(form.pwd); myObj = createObject("component","cfide.adminapi.debugging"); myObj.setDebugProperty("enableDebug",debugToggle); myObj.setIP(cgi.remote_addr); myObj.deleteIP(cgi.remote_addr); Couldn't log you in...please try again Also, I think this is a perfect example of where frameworks/OO do not make sense. Oh, and please don’t put this in a public location, and make sure your CF admin password is strong. 😉