ckb-standalone-debugger
ckb-standalone-debugger copied to clipboard
A standalone debugger enabling off-chain contract development
https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html Use default requirements (Caret). For example, "0.115.0" matches following versions: ``` >=0.115.0,
Consistency checking fails on `tx.json` when there is any `dep_group`. Examples: ```json { "mock_info": { "cell_deps": [ { "cell_dep": { "out_point": { "tx_hash": "0xe2fb199810d49a4d8beec56718ba2593b665db9d52299a0f9e6e75416d73ff5c", "index": "0x3" }, "dep_type": "code" }...
One question: We did the coverage calculation on the contract side before, and it was a curve to save the country: first compile it into x64 code with x64-simulator, and...
Supporting exec calls is a difficult thing, this issue is just an idea
``` 看了一下昨天 debugger meetup 的 slide,想起了一个新需求先提在这边: godwoken 是一个在链外用 generator 跑 ckb-vm 的场景。我们最近签了一个社区的 grant,也会需要这样一个架构。在这样一个架构里,generator 端的调试,目前是没法用到 debugger 的,上次 godwoken 疑似出 bug 时,也是找到了这边,考虑 LV 组自己跑一个 godwoken 来嵌入调试。后期社区项目启动之后,这种需求可能会更多。所以我们要解决一个问题:如何用 ckb-debugger 来调试像 godwoken 这样,链外用 generator 跑的...
## tx dumped from [Godwoken](https://github.com/nervosnetwork/godwoken/pull/299) [dump-tx.zip](https://github.com/nervosnetwork/ckb-standalone-debugger/files/6955053/dump-tx.zip) ``` > ckb-debugger \ --cell-index 2 --cell-type input \ --script-group-type lock \ --tx-file ./eabb1b982c7ed0d8176194f583d18c45a7325505258fc7ec26e011453ed5e019-mock-tx.json \ --pprof pprof \ --replace-binary validator_log thread 'main' panicked at...
Then it can be used by a lot of tools.
The program just exits silently without even printing exit infos. Testing shows CKB VM doesn't have this problem, so it is something that is specific to the debugger.
1. The most important change is to support spawn and vm scheduler. 2. Completely remove `gdb_remote_protocol` dependency. 3. Some adjustments to the project structure - Merge `ckb-debugger-api` into `ckb-debugger` -...
* Supports only LLDB version 18 and above. * This requires the latest [RISC-V-related](https://github.com/daniel5151/gdbstub/pull/149) commit from gdbstub, which has not been officially released yet.