CKB Pulse

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

Prefer
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.

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)

More about Developer tooling

All 35 in this topic

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.

Drawn from public commits and checked against the commit each one came from and the project's code today. Read the source before you rely on one. Text under CC BY 4.0: credit LusoCryptoLabs, CKB lessons, with a link to the lesson. Want a lesson changed or removed? Open an issue.