From 0d8e7eee439873aeddb4e102cc929a30104b14ac Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 7 Jun 2022 12:21:31 +0200 Subject: [PATCH] Use debug console (again) instead of a terminal --- .vscode/launch.json | 39 ++++++++++++++++++++++++++++----------- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index d4352b2..647d9b0 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -3,9 +3,35 @@ "configurations": [ { "name": "Web server", - "type": "node-terminal", + "type": "node", "request": "launch", - "command": "yarn run app:dev", + "runtimeArgs": [ + "run", + "app:dev" + ], + "runtimeExecutable": "yarn", + "skipFiles": [ + "/**" + ], + "env": { + "NODE_OPTIONS": "--inspect" + }, + "presentation": { + "group": "Single", + } + }, + { + "name": "Prisma Studio", + "type": "node", + "request": "launch", + "runtimeArgs": [ + "run", + "db:studio" + ], + "runtimeExecutable": "yarn", + "skipFiles": [ + "/**" + ], "presentation": { "group": "Single", } @@ -25,15 +51,6 @@ "group": "Single", } }, - { - "name": "Prisma Studio", - "type": "node-terminal", - "request": "launch", - "command": "yarn run db:studio", - "presentation": { - "group": "Single", - } - } ], "compounds": [ {