问题描述
是否可以将Visual Studio Code(安装在Windows 10客户端计算机上)配置为运行和调试ColdFusion代码,该代码位于路径 C:\ inetpub \中的服务器端 wwwroot \ dir \ dev ?
我正在该Windows Server 2012 R2 Standard 计算机上使用 ColdFusion 2016 (64位)和 IIS 6.2 。
我在Visual Studio Code的“资源管理器”中打开目录 \\ my-cold-fusion-server-as-FQDN \ c $ \ inetpub \ wwwroot \ dir \ dev ,以显示和修改cfm文件。
我还在Visual Studio代码中配置了 launch.json 文件(“运行”>“打开配置”),如下所示:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information,visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0","configurations": [
{
"type": "pwa-chrome","request": "launch","name": "Launch Chrome against localhost","url": "http://my-cold-fusion-server-as-FQDN/dir/dev","webRoot": "\\\\my-cold-fusion-server-as-FQDN\\c$\\inetpub\\wwwroot\\dir\\dev"
}
]
}
我创建了一个新文件“ test.cfm ”(位于 \\ my-cold-fusion-server-as-FQDN \ c $ \ inetpub \ wwwroot \ dir \开发)并使用以下内容对其进行保护:
<cfscript>
var = "World";
writeOutput("Hello #var#!");
</cfscript>
当我在Visual Studio Code中单击“运行”>“开始调试”时,将打开一个新的浏览器窗口,并显示完全相同的url( http:// my-cold-fusion-server-as-FQDN / dir / dev ),如launch.json文件中指定的那样。
但是我要执行和调试的文件未在url中处理(我期望: http:// my-cold-fusion-server-as-FQDN / dir / dev / test。 cfm )。因此,另外,我无法使用Visual Studio Code中的断点来调试该文件。
因此,我目前只能在Visual Studio中查看,修改和保护cfm文件,并且必须打开相应的URL才能在浏览器中查看该cfm文件。但是我无法使用Visual Studio Code中的断点对其进行调试
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)