简体   繁体   English

是否可以在不运行浏览器的情况下在Visual Studio中调试JavaScript代码?

[英]Is it possible to debug JavaScript code in Visual Studio without running a browser?

Visual Studio, at least in v2012, is supposed to have first-class support for JavaScript. 至少在v2012中,Visual Studio应该具有对JavaScript的一流支持。 However, I haven't found any "JavaScript project type", JS is not even listed as a top-level language in the File > New Project dialog etc. 但是,我还没有找到任何“ JavaScript项目类型”,在“文件”>“新建项目”对话框等中,JS甚至都没有作为顶级语言列出。

JavaScript is, or at least is starting to be, much more than just a scripting language for web apps so I'm wondering if there is a way / plugin / extension for Visual Studio that would allow me just type in some JavaScript and execute it as a language construct (eg, on a node console), not as part of some ASP.NET web application. JavaScript已经或者至少已经开始不仅仅是Web应用程序的脚本语言,所以我想知道是否有Visual Studio的方法/插件/扩展允许我输入一些JavaScript并执行它作为一种语言构造 (例如,在节点控制台上),而不是作为某些ASP.NET Web应用程序的一部分。

VS2012 does have support for JavaScript, but not in a "pure JS project" sense. VS2012确实支持JavaScript,但不是“纯JS项目”。

If you're running VS2012 RC on Win8 Release Preview, you should see project types for Windows 8 Metro style applications implemented with JavaScript. 如果在Win8 Release Preview上运行VS2012 RC,则应该看到使用JavaScript实现的Windows 8 Metro风格应用程序的项目类型。 These types of projects are not available to create on Win7 and below (because they only run on Win8). 这些类型的项目无法在Win7及更低版本上创建(因为它们仅在Win8上运行)。

If you're working with JS inside web application projects, ASP.NET projects, etc. you'll see all the new rich features for JavaScript editing and debugging. 如果在Web应用程序项目,ASP.NET项目等中使用JS,您将看到用于JavaScript编辑和调试的所有新的丰富功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在运行实时服务器的情况下在 Visual Studio Code 中调试 JavaScript - How to Debug JavaScript in Visual Studio Code with live-server Running 在与WebPack捆绑在一起的Visual Studio中调试JavaScript代码 - Debug JavaScript code in Visual Studio bundled with WebPack 无法使用Visual Studio 2017或2019调试浏览器JavaScript - Unable to debug browser JavaScript with Visual Studio 2017 or 2019 使用zuul调试在浏览器中运行的测试中的javascript代码 - debug javascript code under test running in the browser using zuul 将调试路径复制到对象数据 Visual Studio 代码 javascript - Copy debug path to object data visual studio code javascript 使用Just My Code在Visual Studio 2013中调试Javascript - Debug Javascript in Visual Studio 2013 with Just My Code 为什么 Visual Studio 2005 不能调试我的 JavaScript 代码? - Why will Visual Studio 2005 not debug my JavaScript code? Visual Studio 2013有没有可用的免费插件来调试Javascript代码? - Is there any free plugin available for visual studio 2013 to debug Javascript Code? 如何使用 Visual Studio 代码调试 javascript 中的 mocha 测试? - How to debug with visual studio code a mocha test in javascript? 在Visual Studio 2013中调试Javascript - Debug Javascript in Visual Studio 2013
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM