的Visual Studio 2013不能调试JavaScript的CSHTML [英] Visual Studio 2013 can't debug javascript in cshtml

查看:2487
本文介绍了的Visual Studio 2013不能调试JavaScript的CSHTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我与Visual Studio 2013年,我试图调试JavaScript在CSHTML文件中创建一个ASP.NET Web应用程序。但是,每当我启动网页,任何断点变为一个红色圆圈箭头,并指出,断点将目前尚未受到打击。调试器的目标code型无可执行code与该行相关的。可能原因包括:有条件的编图,compilier优化,或此行的目标架构不受当前调试code类型支持

I have an ASP.NET Web Application created with Visual Studio 2013. I am attempting to debug JavaScript in a CSHTML file. However, whenever I launch the webpage, any breakpoint turns into a red circle arrow and states, "The breakpoint will not currently be hit. No executable code of the debugger's target code type is associated with this line. Possible causes include: conditional compiliation, compilier optimizations, or the target architecture of this line is not supported by the current debugger code type."

近日,该项目被切换到支持MVC和RAZR,这两者都不知道好了,这是什么时候这个问题就开始了。然而,搜索那些已经取得了不解决我的问题的结果。

Recently, the project was switched over to support MVC and RAZR, neither of which I know well, and this is exactly when this issue began. However, searching those have yielded results that don't fix my issue.

Web.config文件:

Web.config:

<compilation debug="true"...>

我知道我能与萤火虫或其他一些浏览器工具调试JavaScript,但我宁愿与Visual Studio的调试坚持因为这是我习惯了。

I know I can debug JavaScript with Firebug or some other browser tool, but I would much rather stick with Visual Studio's debug as that is what I am used to.

推荐答案

因此​​,显然这是一个已知的问题,将被尽快修复。临时工作围绕适用于一些人是确保任何JavaScript是在一个单独的文件中。

So, apparently this is a "known issue" that will be fixed as soon as possible. A temporary work around that works for "some" people is making sure any Javascript is in a separate file.

它是由在同一个文件和Visual Studio 2013不能够在该实例来处理调试具有RAZR和Javascript引起

It is caused by having RAZR and Javascript in the same file and Visual Studio 2013 not being able to handle debugging in that instance.

这篇关于的Visual Studio 2013不能调试JavaScript的CSHTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆