From 5f160c0927dad7a2cbe0cfe0a4741b6aecd571a0 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 10 Apr 2021 13:04:48 +0200 Subject: [PATCH] Added debug conf --- .vscode/launch.json | 37 ++++++++++++++++++++----------------- .vscode/settings.json | 11 ++++++++++- 2 files changed, 30 insertions(+), 18 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index ad51dcef..40b41090 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,28 +4,31 @@ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ - { - "name": "Attach by Process ID", - "processId": "${command:PickProcess}", - "request": "attach", - "skipFiles": [ - "/**" - ], - "type": "pwa-node" - }, { "name": "bookshop", - "command": "cds watch bookshop", - "request": "launch", + "command": "npx cds watch bookshop", "type": "node-terminal", - "skipFiles": ["/**"] + "request": "launch", + "skipFiles": [ + "/**", + "**/node_modules/**", + "**/cds/lib/lazy.js", + "**/cds/lib/req/cls.js", + "**/odata-v4/okra/**" + ] }, { - "name": "Fiori app", - "command": "cds watch fiori", - "request": "launch", + "name": "Fiori App", + "command": "npx cds watch fiori", "type": "node-terminal", - "skipFiles": ["/**"] + "request": "launch", + "skipFiles": [ + "/**", + "**/node_modules/**", + "**/cds/lib/lazy.js", + "**/cds/lib/req/cls.js", + "**/odata-v4/okra/**" + ] } ], "inputs": [ @@ -33,7 +36,7 @@ "type": "pickString", "id": "sample", "description": "Which sample do you want to start?", - "options": ["bookshop", "fiori", "reviews", "reviews/test/bookshop"], + "options": [ "bookshop", "fiori", "reviews", "reviews" ], "default": "bookshop" } ] diff --git a/.vscode/settings.json b/.vscode/settings.json index 545b837e..7431ebe8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,5 +4,14 @@ "**/.gitignore": true, "**/.vscode": true, "LICENSES/**": true - } + }, + "debug.javascript.terminalOptions": { + "skipFiles": [ + "/**", + "**/node_modules/**", + "**/cds/lib/lazy.js", + "**/cds/lib/req/cls.js", + "**/odata-v4/okra/**" + ] + }, }