From 051ce6df0051e48327b3506c9288f23457b2b096 Mon Sep 17 00:00:00 2001 From: ApsarasX Date: Wed, 8 Jun 2022 16:11:09 +0800 Subject: [PATCH] Add debug config --- .gitignore | 1 - .vscode/launch.json | 14 ++++++++++++++ assembly/index.ts | 1 + src/program.ts | 1 + 4 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .vscode/launch.json create mode 100644 assembly/index.ts diff --git a/.gitignore b/.gitignore index 98a3ba835b..6fcb350e46 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,6 @@ build/ raw/ .history *.backup -.vscode .idea cli/index.generated.js src/diagnosticMessages.generated.ts diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000000..f8234bd4b9 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,14 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "attach", + "name": "Attach", + "port": 9229, + "skipFiles": [ + "/**" + ] + } + ] +} \ No newline at end of file diff --git a/assembly/index.ts b/assembly/index.ts new file mode 100644 index 0000000000..41b95dce66 --- /dev/null +++ b/assembly/index.ts @@ -0,0 +1 @@ +export function add(): void { } \ No newline at end of file diff --git a/src/program.ts b/src/program.ts index 4e28ba2478..86dfd130cd 100644 --- a/src/program.ts +++ b/src/program.ts @@ -949,6 +949,7 @@ export class Program extends DiagnosticEmitter { /** Initializes the program and its elements prior to compilation. */ initialize(): void { + debugger; if (this.initialized) return; this.initialized = true;