Visual Studio - Javascript - 写入输出窗口
我正在使用 VS2010 Express。我正在写一个javascript函数。
我想向输出文件夹写入一条消息,以便我可以查看程序期间访问的内容。
例如
function Myfunction() {
console.write("point a has been reached");
};
I am using VS2010 Express. I am wrting a javascript function.
I want to write a message to the output folder so I can see what was accessed during the program.
eg
function Myfunction() {
console.write("point a has been reached");
};
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您正在调试网页,请将以下内容放入 HEAD 部分:
然后:
将输出到立即窗口。如果您使用 Visual Studio 通过 cscript 调试 Windows 脚本 javascript,那么您应该能够使用 Debug.writeln,而无需任何其他代码。
If you are debugging a web page, put the following in the HEAD section:
And then:
will output to the immediate window. If you are using Visual Studio to debug a windows scripting javascript via cscript, then you should be able to use Debug.writeln without any additional code.