aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-05-31 23:13:50 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-05-31 23:13:50 -0700
commit1ca70b855cc067ea86df366171fe21621a96d138 (patch)
tree67acb55a6b718010353cf16df9efcd695f26279f
parente632941c520e9346fc706bb12d0434974c3f5a98 (diff)
downloadbun-1ca70b855cc067ea86df366171fe21621a96d138.tar.gz
bun-1ca70b855cc067ea86df366171fe21621a96d138.tar.zst
bun-1ca70b855cc067ea86df366171fe21621a96d138.zip
Update launch.json
-rw-r--r--.vscode/launch.json24
1 files changed, 15 insertions, 9 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
index 1cbd4a79f..ea8218179 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -1,4 +1,9 @@
{
+ // The usage of BUN_GARBAGE_COLLECTOR_LEVEL=2 is important for debugging
+ // It will force the garbage collector to run after every test and every call to expect()
+ // it makes our tests very slow
+ // But it helps catch memory bugs
+
// SIGHUP must be ignored or the debugger will pause when a spawned subprocess exits:
// { "initCommands": ["process handle -p false -s false -n false SIGHUP"] }
"version": "0.2.0",
@@ -12,7 +17,8 @@
"cwd": "${fileDirname}",
"env": {
"FORCE_COLOR": "1",
- "BUN_DEBUG_QUIET_LOGS": "1"
+ "BUN_DEBUG_QUIET_LOGS": "1",
+ "BUN_GARBAGE_COLLECTOR_LEVEL": "2"
},
"initCommands": ["process handle -p false -s false -n false SIGHUP"],
"console": "internalConsole"
@@ -20,18 +26,18 @@
{
"type": "lldb",
"request": "launch",
- "name": "bun test [file] (gc)",
+ "name": "bun test [file] (fast)",
"program": "bun-debug",
"args": ["test", "${file}"],
"cwd": "${fileDirname}",
"env": {
"FORCE_COLOR": "1",
- "BUN_DEBUG_QUIET_LOGS": "1",
- "BUN_GARBAGE_COLLECTOR_LEVEL": "3"
+ "BUN_DEBUG_QUIET_LOGS": "1"
},
"initCommands": ["process handle -p false -s false -n false SIGHUP"],
"console": "internalConsole"
},
+
{
"type": "lldb",
"request": "launch",
@@ -82,7 +88,8 @@
"cwd": "${workspaceFolder}/test",
"env": {
"FORCE_COLOR": "1",
- "BUN_DEBUG_QUIET_LOGS": "1"
+ "BUN_DEBUG_QUIET_LOGS": "1",
+ "BUN_GARBAGE_COLLECTOR_LEVEL": "2"
},
"initCommands": ["process handle -p false -s false -n false SIGHUP"],
"console": "internalConsole"
@@ -90,14 +97,13 @@
{
"type": "lldb",
"request": "launch",
- "name": "bun test [*] (gc)",
+ "name": "bun test [*] (fast)",
"program": "bun-debug",
"args": ["test"],
"cwd": "${workspaceFolder}/test",
"env": {
"FORCE_COLOR": "1",
- "BUN_DEBUG_QUIET_LOGS": "1",
- "BUN_GARBAGE_COLLECTOR_LEVEL": "3"
+ "BUN_DEBUG_QUIET_LOGS": "1"
},
"initCommands": ["process handle -p false -s false -n false SIGHUP"],
"console": "internalConsole"
@@ -140,7 +146,7 @@
"env": {
"FORCE_COLOR": "1",
"BUN_DEBUG_QUIET_LOGS": "1",
- "BUN_GARBAGE_COLLECTOR_LEVEL": "3"
+ "BUN_GARBAGE_COLLECTOR_LEVEL": "2"
},
"initCommands": ["process handle -p false -s false -n false SIGHUP"],
"console": "internalConsole"