How to do a cfdump inside a cfscript tag?

前端 未结 7 1745
滥情空心
滥情空心 2021-01-17 07:24

In order to debug I would like to dump certain variables on to my web page. How can I do that from inside a cfscript tag?

I tried the following but it isn\'t working

7条回答
  •  不知归路
    2021-01-17 07:59

    It would be fairly easy to write your own too. You just define a function in cfml rather than cfscript. You can use this to do cfaborts and cfloops as well.

    Something like this (Off the top of my head...not executed).

    
        
        
    
    
      if(cgi.REMOTE_ADDR eq "IP"){
        MyDump(Var1);
      }
    
    

提交回复
热议问题