gpt4 book ai didi

node.js - VSCode上的pwa-node类型启动配置是什么?

转载 作者:行者123 更新时间:2023-12-03 12:09:34 26 4
gpt4 key购买 nike

我注意到VSCode为npm调试生成的默认启动配置(通过NPM启动)默认将配置类型设置为“pwa-node”。
添加“通过NPM启动”配置:
Adding Launch via NPM configuration
生成的配置类型:
generated type
我搜索了一下,但没有找到它的含义(也许与Progressive Web Apps有关?)。
有谁知道“pwa-node”的含义,为什么知道“pwa-node”而不是“node”?

最佳答案

pwa-前缀是/曾经是VS Code的new JavaScript debugger的一种方式,该名称在当时被称为vscode-pwa
https://github.com/microsoft/vscode-js-debug/pull/32

Talking with Kai and Rob, something we want to do is make the PWA extensiona drop-in replacement for the existing two Chrome and Node debug extensions.Therefore we want to have the PWA extension be able to read and support theexisting configuration settings, and be invoked by launching the chromeand node types. More work, coming soon in a followup PR, willbe needed to actually deal with these settings.

This also moved the build to a Gulp system, supporting NLS and matchingthe existing extensions. Part of the build is the ability to have the typesand commands be prefixed with pwa-: running gulp will generate an extensionthat registers types pwa-node and pwa-chrome, while gulp --drop-in willremove these prefixes. This lets us develop and debug the extension using theexisting packages, until such time as we want to start dogfooding it.


他们还在这里讨论如何使用定位机制: https://github.com/microsoft/vscode/issues/85984

关于node.js - VSCode上的pwa-node类型启动配置是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63442436/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com