{"repo":"bitcoin-core/btcdeb","free":true,"listed":false,"github":"https://github.com/bitcoin-core/btcdeb","clone":"git clone https://github.com/bitcoin-core/btcdeb.git","description":"Bitcoin Script Debugger","language":"C","stars":595,"topics":["bitcoin-script","script-debugger","transaction","bitcoin","debugger","taproot","tapscript"],"license":"MIT","category":"dev-tools","readme_excerpt":"btcdeb Bitcoin Script debugging utilities. This is a set of tools used to debug or construct scripts for use in Bitcoin. Preparation Mac users need the macOS command line tools: And Homebrew. Dependencies btcdeb depends on the following: - libtool - libssl - automake/autoconf - pkg-config Ubuntu/debian users can do: apt-get install libtool libssl-dev autoconf pkg-config (with sudo prepended if necessary) Mac users can do: brew install libtool automake pkg-config Installation On linux or mac, grab the source code and do: Or use docker : If any of those give an error, please file an issue and I'll take a look. It could be a dependency that I forgot about. Emscripten You can compile btcdeb tools into JavaScript using emscripten. After installing the SDK, compile btcdeb tools with the following commands: and then instead of doing ./btcdeb you do node btcdeb.js (or mastify.js , etc). The last part is done because emscripten's emcc expects the input bytecode file to have the .bc extension, whereas the makefile generates files with no extension. Note: most things work, but the console in btcdeb does not. You can work around this by doing echo -n -e \"step\\n\\n\\n\" (with sufficient \\n s). Script debugger The btcdeb command can step through a Bitcoin Script and show stack content and operations on a per op level. See doc/btcdeb.md for details on usage. Script compiler The btcc command can interpret a script in its human readable form and will return a corresponding Bitcoin Script. The ab","default_branch":null,"files":null,"tree":[],"storefront":"/r/bitcoin-core","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bitcoin-core/btcdeb/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}