locked
How to debug Solidity code in BlockChain? RRS feed

  • Question

  • I am very new to Azure BlockChain world. I started off with the sample at https://github.com/Azure-Samples/blockchain/blob/master/blockchain-workbench/application-and-smart-contract-samples/hello-blockchain/readme.md. It is all solidity code, and json schema for workflow implementation [via VS Code Solidity plugin].

    Question

    ===========

    How can I debug my code, and validate that i wrote correct code?

    How can I debug my code that is Azure BlockChain env?

    Please help. Are there any other forums where I can raise my query and get help, if this is not the correct one? Since I am completely, I need a bit of hand holding to get things rolling.

    It's a bit urgent. Can someone please help?

    Thursday, November 15, 2018 2:36 AM

All replies

  • Hello,

    Truffle can be a great place to get started with building and debugging a Smart Contract. All of the Workbench samples are also provided as Truffle boxes to act as a starting point. Then, you can upload your completed contract to Azure Blockchain Workbench. Please see the following blog post for more details. https://azure.microsoft.com/en-us/blog/sweet-updates-about-truffle-on-azure/

    Alternatively, you can iterate on your smart contract using Azure Blockchain Workbench directly where you can easily test your smart contract with our web interface and API.


    Microsoft Azure Blockchain Team

    Thursday, November 15, 2018 11:40 PM
  • In addition to what was already said, you may also want to look at remix and vscode. They allow debugging with some details on what error to change and how.
    Sunday, November 18, 2018 3:53 AM