All lessons · Developer tooling · Start here · Glossary
CKB node script debug logs may use ckb_script::verify target, not only ckb-scriptWorkingFrom one fix
From one fix · Check: right · Checked 2026-11-19
When filtering a CKB node's run.log or log subscription for contract debug output (ckb_debug / debug! syscalls), records can come with target `ckb_script` or a `ckb_script::` submodule such as `ckb_script::verify` rather than the legacy `ckb-script` target. For those targets, match only messages containing `DEBUG OUTPUT:`, because the same target also emits ordinary verification lines.
Why it matters: A log filter that matches only the `ckb-script` target silently drops contract debug output that the node emits under `ckb_script::verify`, so developers see no script logs at all; matching the module target without the `DEBUG OUTPUT:` marker would flood them with ordinary verification lines instead.
Pattern
const isCkbScriptTarget = entry.target === 'ckb_script' || entry.target.startsWith('ckb_script::'); return isCkbScriptTarget && entry.message.includes('DEBUG OUTPUT:');Taken from the commit, shortened.
A test changed in the same commit
It sits next to the fix. We did not run it.
- ckb-devrel/offckb:
tests/logs-command.test.ts,tests/logs.test.ts,tests/node-quiet-mode.test.ts
- Concepts
- Testing and devnet
- Evidence
- From one fix: from one project, checked against its commit
- First seen
- 2026-10-08
- Last changed
- 2026-10-08
- Last checked
- 2026-11-19
- Check against the commit
- right: the lesson follows from its commit and still holds in the code today
Sources (1)
- 2026-10-08 · ckb-devrel/offckb · more from this project
More about 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
Do you maintain a project this lesson came from? Confirm or correct it
Cite this lesson
LusoCryptoLabs, "CKB node script debug logs may use ckb_script::verify target, not only ckb-script", CKB lessons, https://pulse.lusocryptolabs.com/learned/tooling/ckb-node-script-debug-logs-may-use-ckb-script-verify-target, CC BY 4.0, last changed 2026-10-08.