Skip to content

Commit 256898b

Browse files
committed
support winzigc debug with external console
Signed-off-by: amila <[email protected]>
1 parent 87f844b commit 256898b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.vscode/launch.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"program": "${workspaceFolder}/example-programs/winzig_zz.c_binary",
3333
"stopAtEntry": false,
3434
"cwd": "${workspaceRoot}",
35-
"externalConsole": false,
35+
"externalConsole": true,
3636
"MIMode": "lldb",
3737
"sourceFileMap": {
3838
".": "${workspaceFolder}/example-programs"

scripts/compile-and-run.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,6 @@ echo "Executing the" "$winzigc_prog_name"_binary:
5454

5555
"$winzigc_prog_path"_binary
5656

57-
# Comment out the following line to keep the generated binary and llvm bitcode
58-
rm "$winzigc_prog_path".ll "$winzigc_prog_path"_binary
57+
if [ "$dbg_flag" = false ]; then
58+
rm "$winzigc_prog_path".ll "$winzigc_prog_path"_binary
59+
fi

0 commit comments

Comments
 (0)