mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
Fix outdated doc
This commit is contained in:
@@ -30,7 +30,7 @@ bun bd <file> <...args>
|
|||||||
Debug logs look like this:
|
Debug logs look like this:
|
||||||
|
|
||||||
```zig
|
```zig
|
||||||
const log = bun.Output.scoped(.${SCOPE}, false);
|
const log = bun.Output.scoped(.${SCOPE}, .hidden);
|
||||||
|
|
||||||
// ...later
|
// ...later
|
||||||
log("MY DEBUG LOG", .{})
|
log("MY DEBUG LOG", .{})
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ Bun generally takes about 2.5 minutes to compile a debug build when there are Zi
|
|||||||
- Batch up your changes
|
- Batch up your changes
|
||||||
- Ensure zls is running with incremental watching for LSP errors (if you use VSCode and install Zig and run `bun run build` once to download Zig, this should just work)
|
- Ensure zls is running with incremental watching for LSP errors (if you use VSCode and install Zig and run `bun run build` once to download Zig, this should just work)
|
||||||
- Prefer using the debugger ("CodeLLDB" in VSCode) to step through the code.
|
- Prefer using the debugger ("CodeLLDB" in VSCode) to step through the code.
|
||||||
- Use debug logs. `BUN_DEBUG_<scope>=1` will enable debug logging for the corresponding `Output.scoped(.<scope>, false)` logs. You can also set `BUN_DEBUG_QUIET_LOGS=1` to disable all debug logging that isn't explicitly enabled. To dump debug lgos into a file, `BUN_DEBUG=<path-to-file>.log`. Debug logs are aggressively removed in release builds.
|
- Use debug logs. `BUN_DEBUG_<scope>=1` will enable debug logging for the corresponding `Output.scoped(.<scope>, .hidden)` logs. You can also set `BUN_DEBUG_QUIET_LOGS=1` to disable all debug logging that isn't explicitly enabled. To dump debug lgos into a file, `BUN_DEBUG=<path-to-file>.log`. Debug logs are aggressively removed in release builds.
|
||||||
- src/js/\*\*.ts changes are pretty much instant to rebuild. C++ changes are a bit slower, but still much faster than the Zig code (Zig is one compilation unit, C++ is many).
|
- src/js/\*\*.ts changes are pretty much instant to rebuild. C++ changes are a bit slower, but still much faster than the Zig code (Zig is one compilation unit, C++ is many).
|
||||||
|
|
||||||
## Code generation scripts
|
## Code generation scripts
|
||||||
|
|||||||
Reference in New Issue
Block a user