如何使用 writeDump 或 writeOutput 从远程函数编写 html?

问题描述

我来自 Adob​​e Coldfusion,我正在尝试通过将值写入输出来调试 lucee 中的组件。通常我做的是:

component Sample {
    remote Void function spotCheck() {
    writeDump(1234);
    writeOutput("<br>Test");
    return
}

然后点击页面到 HTTP://localhost/sample/Sample.cfc?method=spotCheck

但它不起作用。我更新了函数以使其具有 returnformat="text",但随后输出是纯文本,文本形式中带有 HTML 标签。我尝试将其设置为“html”而不是文本,但随后出现以下错误

This page contains the following errors:

error on line 20 at column 17: xmlParseEntityRef: no name
Below is a rendering of the page up to the first error.

我可能做错了,我很高兴学习 lucee 如何轻松检查组件函数内变量的值。
PS:我没有/使用逐步调试器。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)