Skip to content

Prompt on Debug Console causes app to crash #158509

@HiranmayaGundu

Description

@HiranmayaGundu

Type: Bug

I have my task.json configured to run a yarn start command. This is required because of some complexities in the build step. I have the output being captured in the Debug Console so that I can see the output using the outputCapture["std"] command. The full json is as specified here:

{
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
    {
      "type": "pwa-node",
      "request": "launch",
      "name": "Launch app via Yarn",
      "runtimeExecutable": "yarn",
      "cwd": "${workspaceFolder}/",
      "runtimeArgs": ["start"],
      "outputCapture": "std",
      "env": {
        "var": true
      }
    },
  ]
}

In some scenariors the yarn start command might prompt something because it runs a shell script first. This causes VSCode to crash entirely.

VS Code version: Code 1.70.2 (e4503b3, 2022-08-16T05:38:59.695Z)
OS version: Darwin arm64 21.6.0
Modes:

System Info
Item Value
CPUs Apple M1 (8 x 24)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 6, 5, 5
Memory (System) 16.00GB (0.22GB free)
Process Argv sigma/mono-node/.vscode/workspace.code-workspace --crash-reporter-id 16511a18-2344-4eca-b320-b2fc13948411
Screen Reader no
VM 0%
Extensions (66)
Extension Author (truncated) Version
vscode-openapi 42C 4.13.0
vscode-sql-formatter adp 1.4.4
vscode-intelephense-client bme 1.8.2
vscode-tailwindcss bra 0.8.6
better-toml bun 0.3.2
doxdocgen csc 1.4.0
vscode-eslint dba 2.2.6
gitlens eam 12.1.2
prettier-vscode esb 9.5.0
copilot Git 1.41.6508
copilot-labs Git 0.2.221
vscode-pull-request-github Git 0.48.1
go gol 0.35.2
todo-tree Gru 0.0.215
jenkins-pipeline-linter-connector jan 1.2.0
better-cpp-syntax jef 1.15.19
svg joc 1.4.19
vscode-map-preview jum 0.5.9
fluent-icons mig 0.0.18
vscode-docker ms- 1.22.1
csharp ms- 1.25.0
vscode-edge-devtools ms- 2.1.0
python ms- 2022.12.0
vscode-pylance ms- 2022.8.30
jupyter ms- 2022.7.1102252217
jupyter-keymap ms- 1.0.0
jupyter-renderers ms- 1.0.9
remote-containers ms- 0.245.1
remote-ssh ms- 0.84.0
remote-ssh-edit ms- 0.80.0
remote-wsl ms- 0.66.3
cmake-tools ms- 1.11.26
cpptools ms- 1.11.5
cpptools-extension-pack ms- 1.2.0
live-server ms- 0.2.13
makefile-tools ms- 0.5.0
cuelang nic 0.0.1
vscode-groovy-lint Nic 2.0.0
vetur oct 0.36.0
vscode-jest Ort 4.6.0
prisma Pri 4.2.0
typescript-hero rbb 3.0.0
java red 1.9.0
vscode-commons red 0.0.6
vscode-xml red 0.21.2022062916
vscode-yaml red 1.9.1
nas-vscode rig 0.0.1
rust-analyzer rus 0.3.1170
jenkinsfile-support sec 0.1.0
mdx sil 0.1.1
code-spell-checker str 2.5.4
svelte-vscode sve 105.21.0
vscode-pets ton 1.11.0
cmake twx 0.0.17
vscode-lldb vad 1.7.4
vscodeintellicode Vis 1.2.22
vscode-java-debug vsc 0.43.0
vscode-java-dependency vsc 0.21.0
vscode-java-pack vsc 0.25.0
vscode-java-test vsc 0.36.0
vscode-maven vsc 0.37.0
vscode-icons vsc 11.15.0
clang-format xav 1.9.0
material-theme zhu 3.15.2
linkerscript Zix 1.0.2
vscode-proto3 zxh 0.5.5

(8 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonvspyt551:30345470
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411cf:30542925
vsaa593cf:30376535
pythonvs932:30410667
wslgetstarted:30449410
cppdebug:30492333
vscaat:30438848
pylanb8912:30545647
vsclangdc:30486549
c4g48928:30535728
hb751961:30543456
dsvsc012:30540252
azure-dev_surveyone:30548225

Metadata

Metadata

Assignees

Labels

*questionIssue represents a question, should be posted to StackOverflow (VS Code)debugDebug viewlet, configurations, breakpoints, adapter issuesinfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions