简体   繁体   English

在Visual Studio 2017中调试node.js项目时如何传递args?

[英]How do I pass args while debugging a node.js project in Visual Studio 2017?

Please note this is specifically for VS2017. 请注意,这是专门针对VS2017的。 Everything I've turned up while searching is for VS Code. 我在搜索时打开的所有内容都是VS Code。

I can pass args just fine running a node.js project from CMD. 我可以通过CMD运行好node.js项目来传递args。 But in VS2017 the args I placed in the project properties page's Script arguments field aren't getting passed to the script. 但是在VS2017中,我放置在项目属性页面的脚本参数字段中的参数没有传递给脚本。 I've tried with and without quotes. 我试过有无引号。

属性页面的屏幕截图

将VS 2017更新到最新版本(在撰写本文时,版本为15.2(26430.16))已解决了该问题。

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

相关问题 如何使Node.js控制台在Visual Studio 2017中暂停? - How to get node.js console to pause in Visual Studio 2017? 当我在Visual Studio 2017中使用Node.js交互式窗口时,为什么会出现“SyntaxError:Unexpected identifier”错误? - Why do I get a “SyntaxError: Unexpected identifier” error when I use the Node.js Interactive Window in Visual Studio 2017? 如何在同一个Visual Studio项目中混合Node.js和Typescript? - How to mix Node.js and Typescript in the same Visual Studio project? 使用 Visual Studio Code 和 Node.js 调试/学习 javascript - debugging/learning javascript using Visual Studio Code and Node.js 如何在Node.js中运行复制的项目 - How do I run a copied project in Node.js 如何在WebStorm中为Node.js创建项目? - How do I create a project in WebStorm for Node.js? 使用Visual Studio 2017的Node Js Web服务 - Node Js web services with visual studio 2017 Visual Studio 2017 Enterprise-无法启动Node.js交互式窗口 - Visual Studio 2017 Enterprise - cannot launch Node.js Interactive Window Visual Studio 2017中的Javascript代理(节点)在调试时会导致阻塞 - Javascript Proxy (Node) in Visual Studio 2017 Causes Blocking When Debugging Node.js可以使用哪些调试选项? ESP。 在Visual Studio代码中 - What debugging options are available for Node.js? Esp. in Visual Studio Code
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM