Bitcoin Forum
June 19, 2024, 10:14:41 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Online Bitcoin Script simulator or debugger?  (Read 1140 times)
Geremia (OP)
Sr. Member
****
Offline Offline

Activity: 505
Merit: 252


View Profile WWW
January 26, 2016, 12:15:30 AM
 #1

Is there an online simulator that would allow me to step through, debug, or simulate the execution of a Bitcoin script?

BTC tip jar | my BTC wiki, BTC StackExchange | Tox ID: 65C3E8810738AD9D175234808FCB317A1103632903436203D45411AE97C03F54C34861AB6663
Join Kraken. | The best, free book on Bitcoin: Mastering Bitcoin
Nos cum prole pia benedicat Virgo Maria.
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3430
Merit: 6720


Just writing some code


View Profile WWW
January 26, 2016, 12:23:54 AM
 #2

Is there an online simulator that would allow me to step through, debug, or simulate the execution of a Bitcoin script?
Try this one: https://webbtc.com/script/

If you want a program that is also good for this, checkout hashmal: https://bitcointalk.org/index.php?topic=1168604

Geremia (OP)
Sr. Member
****
Offline Offline

Activity: 505
Merit: 252


View Profile WWW
January 26, 2016, 05:45:58 PM
 #3

I also discovered this

http://www.cs.princeton.edu/~tongbinw/bitcoinIDE/build/editor.html

courtesy StephenM347 on Bitcoin StackExchange.

BTC tip jar | my BTC wiki, BTC StackExchange | Tox ID: 65C3E8810738AD9D175234808FCB317A1103632903436203D45411AE97C03F54C34861AB6663
Join Kraken. | The best, free book on Bitcoin: Mastering Bitcoin
Nos cum prole pia benedicat Virgo Maria.
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1078


Ian Knowles - CIYAM Lead Developer


View Profile WWW
January 26, 2016, 05:49:29 PM
 #4

Most of the online ones that I have played with have bugs (including those linked) so don't rely on them for anything very important.

Best to play with Bitcoin using "-regtest" for prototyping of actual scripts (the debug.log can help with working out why scripts have failed).

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
Geremia (OP)
Sr. Member
****
Offline Offline

Activity: 505
Merit: 252


View Profile WWW
January 27, 2016, 09:17:30 PM
 #5

Best to play with Bitcoin using "-regtest" for prototyping of actual scripts (the debug.log can help with working out why scripts have failed).
How do I use that? Where is it documented? thanks

BTC tip jar | my BTC wiki, BTC StackExchange | Tox ID: 65C3E8810738AD9D175234808FCB317A1103632903436203D45411AE97C03F54C34861AB6663
Join Kraken. | The best, free book on Bitcoin: Mastering Bitcoin
Nos cum prole pia benedicat Virgo Maria.
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3430
Merit: 6720


Just writing some code


View Profile WWW
January 27, 2016, 09:19:45 PM
 #6

Best to play with Bitcoin using "-regtest" for prototyping of actual scripts (the debug.log can help with working out why scripts have failed).
How do I use that? Where is it documented? thanks
Start Bitcoin Core with the -regtest flag in the command that starts it. Mine some regtest coins and then create your transaction by hand. Push it through your Bitcoin Core and see if it transacts or not.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!