node/lib
Trivikram Kamat 1f806f2214
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-22 05:55:33 +00:00
..
assert
dns
fs
inspector
internal debugger: lazily wait for initial break output 2026-06-22 05:55:33 +00:00
path
readline
stream stream: add stream/iter to classic stream adapters 2026-04-06 09:59:56 -07:00
test
timers
util
zlib stream: add stream/iter Implementation 2026-03-27 19:55:08 -07:00
_http_agent.js http: avoid stream listeners on idle agent sockets 2026-06-20 14:58:11 +00:00
_http_client.js http: add httpValidation option to configure header value validation 2026-05-30 08:10:58 +00:00
_http_common.js http: add httpValidation option to configure header value validation 2026-05-30 08:10:58 +00:00
_http_incoming.js http: make req.headers have a null prototype 2026-04-25 09:28:53 +00:00
_http_outgoing.js http: add httpValidation option to configure header value validation 2026-05-30 08:10:58 +00:00
_http_server.js http: add httpValidation option to configure header value validation 2026-05-30 08:10:58 +00:00
_tls_common.js
_tls_wrap.js
assert.js
async_hooks.js domain: port to AsyncLocalStorage 2026-06-21 19:42:03 +00:00
buffer.js buffer: optimize Buffer.prototype.copy 2026-06-12 23:26:19 +00:00
child_process.js lib: handle --permission-audit when propagating flags 2026-05-06 19:21:11 +00:00
cluster.js
console.js
constants.js
crypto.js crypto: implement randomUUIDv7() 2026-04-05 10:12:21 +00:00
dgram.js dgram: add synchronous Socket connectSync() 2026-06-17 19:09:05 +00:00
diagnostics_channel.js lib: add lint rule to enforce use of kEmptyObject 2026-06-10 10:56:56 +00:00
dns.js dns,net: reject hostnames with embedded NUL bytes 2026-06-18 06:29:24 +02:00
domain.js domain: port to AsyncLocalStorage 2026-06-21 19:42:03 +00:00
dtls.js lib: apply minor dtls cleanups 2026-05-31 12:49:51 -07:00
eslint.config_partial.mjs lib: add Iterator global to primordials 2026-06-13 17:31:16 +00:00
events.js tools: enforce iterator result property order 2026-05-26 17:19:42 +00:00
ffi.js ffi: add experimental fast FFI call API for AArch64 and x86_64 2026-06-16 09:35:02 +00:00
fs.js fs: support caller-supplied readFile() buffers 2026-06-13 10:08:05 +00:00
http.js
http2.js
https.js
inspector.js
module.js
net.js net: early TCP binding via synchronous net.BoundSocket 2026-06-20 14:40:48 -07:00
os.js
path.js
perf_hooks.js
process.js
punycode.js
querystring.js
quic.js quic: fix broken listEndpoints export, test callbacks & nghttp3 include 2026-06-14 13:06:39 +00:00
readline.js
repl.js lib: add lint rule to enforce use of kEmptyObject 2026-06-10 10:56:56 +00:00
sea.js
sqlite.js
stream.js
string_decoder.js
sys.js
test.js test_runner: add getTestContext() 2026-04-01 10:09:41 +00:00
timers.js
tls.js tls: add certificateCompression option 2026-06-19 16:07:24 +02:00
trace_events.js
tty.js
url.js
util.js lib: add lint rule to enforce use of kEmptyObject 2026-06-10 10:56:56 +00:00
v8.js v8: add cpu profile options 2026-04-26 19:36:36 +00:00
vfs.js vfs: add minimal node:vfs subsystem 2026-05-23 18:43:31 +00:00
vm.js lib: add lint rule to enforce use of kEmptyObject 2026-06-10 10:56:56 +00:00
wasi.js lib: add lint rule to enforce use of kEmptyObject 2026-06-10 10:56:56 +00:00
worker_threads.js
zlib.js zlib: coerce -0 to +0 for crc32 seeds 2026-05-31 14:25:31 +00:00