How to do a cfdump inside a cfscript tag?

前端 未结 7 1798
滥情空心
滥情空心 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条回答
  •  Happy的楠姐
    2021-01-17 07:56

    Isn't the following much easier and straightforward?

    oAdmin = createObject("component", "cfide.adminapi.base");
    oAdmin.dump(myVar);
    

    It works on CF7 and forward, perhaps even earlier.

提交回复
热议问题