blob: 0da0ab6b58f916a34c919348a497a05c4f83c8df [file] [log] [blame]
Samuel Shuertf65c0ab2023-12-03 20:15:29 -05001{
2 "version": "0.2.0",
3 "configurations": [
4 {
5 "type": "bun",
6 "request": "launch",
7 "name": "Debug Bun",
8
9 // The path to a JavaScript or TypeScript file to run.
10 "program": "${file}",
11
12 // The arguments to pass to the program, if any.
13 "args": [],
14
15 // The working directory of the program.
16 "cwd": "${workspaceFolder}",
17
18 // The environment variables to pass to the program.
19 "env": {},
20
21 // If the environment variables should not be inherited from the parent process.
22 "strictEnv": false,
23
24 // If the program should be run in watch mode.
25 // This is equivalent to passing `--watch` to the `bun` executable.
26 // You can also set this to "hot" to enable hot reloading using `--hot`.
27 "watchMode": false,
28
29 // If the debugger should stop on the first line of the program.
30 "stopOnEntry": false,
31
32 // If the debugger should be disabled. (for example, breakpoints will not be hit)
33 "noDebug": false,
34
35 // The path to the `bun` executable, defaults to your `PATH` environment variable.
36 "runtime": "bun",
37
38 // The arguments to pass to the `bun` executable, if any.
39 // Unlike `args`, these are passed to the executable itself, not the program.
40 "runtimeArgs": [],
41 },
42 {
43 "type": "bun",
44 "request": "attach",
45 "name": "Attach to Bun",
46
47 // The URL of the WebSocket inspector to attach to.
48 // This value can be retrieved by using `bun --inspect`.
49 "url": "ws://localhost:6499/",
50 }
51 ]
52 }