Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node.jsのアプリケーションのデバッグで複数NODE_ENV設定の構成は切り替えできない #212010

Open
expmsg opened this issue May 4, 2024 · 2 comments
Assignees
Labels
*english-please Issue not using English info-needed Issue requires more information from poster translation-required-japanese

Comments

@expmsg
Copy link

expmsg commented May 4, 2024

Type: Bug

launch.jsonに、下記のような複数NODE_ENVを構成している場合は、メニュー:実行>デバッグの開始を選択したときに、productionとdevelopmentのドロップダウンは表示されないため、切り替えできません。原因と対応方法を教えていただけますと幸いです。
{
// IntelliSense を使用して利用可能な属性を学べます。
// 既存の属性の説明をホバーして表示します。
// 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "debug production",
"program": "${workspaceFolder}\prg\bin\www",
"env": {
"NODE_ENV": "production"
}
},
{
"type": "node",
"request": "launch",
"name": "debug development",
"program": "${workspaceFolder}\prg\bin\www",
"env": {
"NODE_ENV": "development"
}
}
]
}

VS Code version: Code 1.89.0 (b58957e, 2024-05-01T02:09:22.859Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz (4 x 3392)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: unavailable_off
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 7.89GB (4.01GB free)
Process Argv --crash-reporter-id 1116b557-3ff8-460e-9f01-8bc7af845c05
Screen Reader no
VM 40%
Extensions (27)
Extension Author (truncated) Version
doxdocgen csc 1.4.0
vscode-eslint dba 2.4.4
chatgpt-gpt4-gpt3-vscode Eas 1.4.1
code-runner for 0.12.2
docker-explorer for 0.1.7
remotehub Git 0.62.0
better-cpp-syntax jef 1.17.2
Angular-BeastCode Mik 17.0.4
zenkaku mos 0.0.3
vscode-docker ms- 1.29.1
vscode-language-pack-ja MS- 1.89.2024050109
remote-containers ms- 0.362.0
remote-ssh ms- 0.110.1
remote-ssh-edit ms- 0.86.0
remote-wsl ms- 0.88.2
vscode-remote-extensionpack ms- 0.25.0
azure-repos ms- 0.38.0
cmake-tools ms- 1.17.17
cpptools ms- 1.19.9
cpptools-extension-pack ms- 1.3.0
remote-explorer ms- 0.4.3
remote-repositories ms- 0.40.0
remote-server ms- 1.5.1
LiveServer rit 5.7.9
open-in-browser tec 2.0.0
cmake twx 0.0.17
php-debug xde 1.34.0

(1 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscoreces:30445986
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
2e7ec940:31000449
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
ccp2r3:30993541
dsvsc020:30976470
pythonait:31006305
666c4381:30973075
dsvsc021:30996838
9c06g630:31013171
pythoncenvpt:31022790
dwnewjupytercf:31035177

@VSCodeTriageBot VSCodeTriageBot added new release *english-please Issue not using English translation-required-japanese info-needed Issue requires more information from poster labels May 4, 2024
@VSCodeTriageBot
Copy link
Collaborator

この問題を作成していただきありがとうございます。

しかし、説明文が英語ではないため、作業が難しいです。可能であれば、この号を英語に編集してください。新しいコメントを追加したり、新しい課題を作成したりせず、既存の課題を編集してください。

残念ながら、自動翻訳サービスでは、ソフトウェアの問題について効果的に伝えるために必要な技術用語を処理できないため、当社の技術に精通した人間の翻訳者に翻訳を手伝ってもらうことをお勧めします。

それ以外の場合、この問題は翻訳が必要とマークされており、コミュニティメンバーが翻訳を手伝ってくれる場合があります。


Thanks for creating this issue!

Unfortunately, as the description is not in English, it's hard for us to work on. If possible, please edit the original issue to be in English.

In our experience, automatic translation services are not able to handle the technical language needed to effectively communicate about software issues, so we recommend finding a human translator who is familiar with our technology to help.

Otherwise, we have marked this as needing translation and a community member may be able to help out.

@expmsg
Copy link
Author

expmsg commented May 4, 2024

When I develop a node.js application using vscode, configure multiple NODE_ENV in launch.json as below, but the production and development dropdowns are not shown and cannot be toggled when I select Menu: Run > Start Debugging.
I would appreciate it if you could tell me the cause and how to deal with it.

launch.json as below

{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "debug production",
"program": "${workspaceFolder}\prg\bin\www",
"env": {
"NODE_ENV": "production"
}
},
{
"type": "node",
"request": "launch",
"name": "debug development",
"program": "${workspaceFolder}\prg\bin\www",
"env": {
"NODE_ENV": "development"
}
}
]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
*english-please Issue not using English info-needed Issue requires more information from poster translation-required-japanese
Projects
None yet
Development

No branches or pull requests

3 participants