Todas as lições · Developer tooling · Começa aqui · Glossário
ckb-testtool on Windows needs a real ckb-debugger.exe on PATH, not a .cmd shimPráticoDe uma correção
De uma correção · Verificação: certa · Verificada em 2026-11-21
ckb-testtool spawns `ckb-debugger` through Node child_process without a shell, and on Windows that resolves a bare name only to an .exe on PATH, never to a .cmd file (and spawning .cmd shell-less is refused since Node 18.20.2 / 20.12.2). A ckb-debugger.cmd wrapper alone makes native mock tests fail with "ckb-debugger not found", so place an actual ckb-debugger.exe (a hard link or copy of the binary) in a PATH directory.
Porque importa: With only a ckb-debugger.cmd shim on PATH, ckb-testtool's shell-less spawn cannot find the debugger on Windows. Native mock tests then fail with "ckb-debugger not found" even though the debugger is installed.
Padrão
const exePath = path.join(dir, 'ckb-debugger.exe');Tirado do commit, encurtado.
Um teste mudou no mesmo commit
Está ao lado da correcção. Nós não o corremos.
- ckb-devrel/offckb:
tests/ckb-debugger-install.test.ts
- Conceitos
- Testing and devnet
- Evidência
- De uma correção: de um projeto, verificada contra o commit
- Vista pela primeira vez
- 2026-11-19
- Última mudança
- 2026-11-19
- Última verificação
- 2026-11-21
- Verificação contra o commit
- certa: a lição sai do commit e continua a valer no código de hoje
Fontes (1)
- 2026-11-19 · ckb-devrel/offckb · mais deste projeto
Mais sobre Developer tooling
- ckb-vm-js 0.2.0 (npm) checks header hash instead of rejecting the field
- Derive devnet Spore and system script cell deps from a fresh OffCKB export
- Pass wasm bytes to ckb-vm-js createVerifier in Node
Manténs um projeto de onde esta lição veio? Confirma ou corrige
Citar esta lição
LusoCryptoLabs, "ckb-testtool on Windows needs a real ckb-debugger.exe on PATH, not a .cmd shim", CKB lessons, https://pulse.lusocryptolabs.com/learned/tooling/ckb-testtool-on-windows-needs-a-real-ckb-debugger-exe-on-pat, CC BY 4.0, last changed 2026-11-19.