node/lib
Trivikram Kamat 0855d452bc
debugger: lazily wait for initial break output
Wait for the initial pause render before completing debugger REPL
startup, but only when the initial pause is actually observed during
startup initialization.

Creating the wait promise before Runtime.runIfWaitingForDebugger() can
hang when the debug target exits or disconnects without producing an
initial pause event. It also assumes the inspector object always has
parsed CLI options, which is not true for tests that use a minimal mock
inspector.

Create the initial-render wait lazily from the Debugger.paused handler
while startup initialization is active. This preserves prompt ordering
for normal initial breaks without blocking startup when no initial pause
render occurs.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63969
Refs: https://github.com/nodejs/node/actions/runs/27582782593/job/81546582775
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2026-06-25 16:07:45 +02:00
..
assert
dns
fs
inspector
internal debugger: lazily wait for initial break output 2026-06-25 16:07:45 +02:00
path
readline
stream stream: add bytes() method to stream/consumers 2026-02-22 23:16:12 +01:00
test
timers
util
_http_agent.js http: avoid stream listeners on idle agent sockets 2026-06-23 01:06:49 +01:00
_http_client.js http: harden ClientRequest options merge 2026-05-07 15:41:50 +02:00
_http_common.js http: fix use-after-free when freeParser is called during llhttp_execute 2026-04-10 14:52:18 +02:00
_http_incoming.js http: add req.signal to IncomingMessage 2026-05-07 15:41:33 +02:00
_http_outgoing.js http: emit 'drain' on OutgoingMessage only after buffers drain 2026-05-07 15:41:50 +02:00
_http_server.js http: add writeInformation to send arbitrary 1xx status codes 2026-06-18 00:15:53 +02:00
_stream_duplex.js
_stream_passthrough.js
_stream_readable.js
_stream_transform.js
_stream_wrap.js
_stream_writable.js
_tls_common.js lib: backport _tls_common and _tls_wrap refactors 2026-02-04 15:32:52 +01:00
_tls_wrap.js lib: backport _tls_common and _tls_wrap refactors 2026-02-04 15:32:52 +01:00
assert.js lib: prefer call() over apply() if argument list is not array 2026-02-22 23:16:05 +01:00
async_hooks.js async_hooks: enabledHooksExist shall return if hooks are enabled 2026-04-08 23:53:00 +02:00
buffer.js buffer: increase Buffer.poolSize default to 64 KiB 2026-06-18 21:12:36 +01:00
child_process.js
cluster.js
console.js
constants.js
crypto.js crypto: implement randomUUIDv7() 2026-05-07 15:41:33 +02:00
dgram.js lib: prefer call() over apply() if argument list is not array 2026-02-22 23:16:05 +01:00
diagnostics_channel.js src: add C++ support for diagnostics channels 2026-04-10 14:52:13 +02:00
dns.js dns: coerce -0 to +0 in lookup and resolver inputs 2026-06-25 16:07:32 +02:00
domain.js
eslint.config_partial.mjs lib: add Iterator global to primordials 2026-06-25 16:07:39 +02:00
events.js events: avoid cloning listeners array on every emit 2026-04-10 16:09:54 +02:00
fs.js fs: support caller-supplied readFile() buffers 2026-06-25 16:07:39 +02:00
http.js http: add http.setGlobalProxyFromEnv() 2026-02-22 23:16:06 +01:00
http2.js
https.js http: add http.setGlobalProxyFromEnv() 2026-02-22 23:16:06 +01:00
inspector.js inspector: initial support storage inspection 2026-05-09 09:32:19 +02:00
module.js
net.js net: support TCP_KEEPINTVL and TCP_KEEPCNT in setKeepAlive 2026-06-25 16:07:39 +02:00
os.js os: freeze signals constant 2026-01-19 19:19:27 +01:00
path.js
perf_hooks.js perf_hooks: move non-standard performance properties to perf_hooks 2025-11-13 22:44:12 +01:00
process.js
punycode.js lib,src: isInsideNodeModules should test on the first non-internal frame 2026-01-19 19:19:20 +01:00
querystring.js
quic.js quic: fix broken listEndpoints export, test callbacks & nghttp3 include 2026-06-25 16:07:40 +02:00
readline.js
repl.js repl: keep reference count for process.on('newListener') 2026-05-09 09:22:15 +02:00
sea.js
sqlite.js sqlite: mark as release candidate 2026-04-08 23:53:07 +02:00
stream.js stream: export namespace object from internal end-of-stream module 2026-01-28 16:29:45 +01:00
string_decoder.js
sys.js
test.js test_runner: fix lazy test.assert accessor 2026-01-19 19:19:25 +01:00
timers.js lib: remove redundant destroyHook checks 2025-11-07 18:11:13 +01:00
tls.js tls: add certificateCompression option 2026-06-25 16:07:43 +02:00
trace_events.js
tty.js
url.js url: suppress warnings from url.format/url.resolve inside node_modules 2026-04-10 15:54:18 +02:00
util.js util: remove style caches from styleText slow path 2026-06-25 16:07:38 +02:00
v8.js v8: add GCProfiler support for erm 2026-01-27 22:52:32 +01:00
vm.js
wasi.js
worker_threads.js
zlib.js zlib: coerce -0 to +0 for crc32 seeds 2026-06-25 16:07:33 +02:00