Skip to main content
 首页 » 编程设计

coldfusion之Application.cfc : this. debugipaddress 和this.debuggingIPAddresses,有什么区别

2024年12月31日15Free-Thinker

我看过Application.cfc的以下代码(需要调试的ip地址列表):

<!---seen in blogs and perhaps earlier versions of CF documentation, livedocs isn't working for CF 7 & 8 for me tonight---> 
<cfset this.debugipaddress = "192.168.1.15,192.168.1.27"> 

<!--- documented in CF 9 & 10---> 
<cfset this.debuggingIPAddresses = "192.168.1.15,192.168.1.27"> 

http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-750b.html

http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-750b.html

我想知道这两个变量之间是否存在差异?我正在使用 ColdFusion 10,如果它们相同,是否会优先于另一个?也许 this.debugipaddress 已被弃用?

请您参考如下方法:

据我所知,这是一个文档错误。据雷Camden's blog以及其中的注释,应该是debuggingipaddresses 而不是debugipaddress。 Ray也用过here并指出有更正。

Pretty standard and he appears to have nailed everything. A part of me strongly wishes that Ben Forta would have never used UPPERCASE scope names in the WACK books so that my eyes wouldn't have to bleed every time I see someone else do that, but oh well :). One minor correction - this.debugipaddress is actually this.debuggingipaddresses (see here) - no points deducted for that since it's a doc bug. I also would have liked to have seen him mention the struct keys for smtpServerSettings ({server="",username="",password=""}).