2024-09-18 09:44:44 +02:00
|
|
|
# Node.js Core Development Flags
|
2019-03-14 18:12:17 +01:00
|
|
|
|
2024-09-18 09:44:44 +02:00
|
|
|
These flags are specifically designed for use in Node.js core development and are not intended for general
|
|
|
|
application usage.
|
2019-03-14 18:12:17 +01:00
|
|
|
|
2024-09-18 09:44:44 +02:00
|
|
|
> \[!NOTE]
|
|
|
|
> These APIs are not bound by semantic versioning rules, and they can be altered or removed in any version of Node.js
|
|
|
|
|
|
|
|
## Command Line Interface (CLI)
|
2019-03-14 18:12:17 +01:00
|
|
|
|
|
|
|
### Flags
|
|
|
|
|
2024-03-07 19:00:11 +01:00
|
|
|
#### `--debug-arraybuffer-allocations`
|
|
|
|
|
2024-09-18 09:44:44 +02:00
|
|
|
Enables debugging of `ArrayBuffer` allocations.
|
|
|
|
|
2024-03-07 19:00:11 +01:00
|
|
|
#### `--expose-internals`
|
|
|
|
|
2024-09-18 09:44:44 +02:00
|
|
|
Allows the usage of `internal/*` modules, granting access to internal Node.js functionality.
|
2024-03-07 19:00:11 +01:00
|
|
|
|
2019-03-14 18:12:17 +01:00
|
|
|
#### `--inspect-brk-node[=[host:]port]`
|
|
|
|
|
2024-09-18 09:44:44 +02:00
|
|
|
Pauses execution at the start of Node.js application code, waiting for a debugger to connect on the specified
|
|
|
|
`host` and `port`. This is useful for debugging application startup issues. If `host` and `port` are not
|
|
|
|
provided, it defaults to `127.0.0.1:9229`.
|
2024-03-07 19:00:11 +01:00
|
|
|
|
|
|
|
#### `--node-snapshot`
|
|
|
|
|
2024-09-18 09:44:44 +02:00
|
|
|
Enables the use of Node.js snapshots, potentially improving startup performance.
|
|
|
|
|
2024-03-07 19:00:11 +01:00
|
|
|
#### `--test-udp-no-try-send`
|
|
|
|
|
2024-09-18 09:44:44 +02:00
|
|
|
Used for testing UDP functionality without attempting to send data.
|
|
|
|
|
2024-03-07 19:00:11 +01:00
|
|
|
#### `--trace-promises`
|
|
|
|
|
2024-09-18 09:44:44 +02:00
|
|
|
Enables tracing of promises for debugging and performance analysis.
|
|
|
|
|
2024-03-07 19:00:11 +01:00
|
|
|
#### `--verify-base-objects`
|
2024-09-18 09:44:44 +02:00
|
|
|
|
|
|
|
Allows verification of base objects for debugging purposes.
|