embarklabs / embark

Framework for serverless Decentralized Applications using Ethereum, IPFS and other platforms
https://framework.embarklabs.io/
MIT License
3.79k stars 494 forks source link

Debugging doesn't work with vyper #1525

Open iamwilhelm opened 5 years ago

iamwilhelm commented 5 years ago

Bug Report

Summary

Debugger doesn't work with vyper contracts

Current behavior

The embark console debug doesn't show the code nor the local variables when attempting to step into it.

How to reproduce

Using the following contract:

storedData: public(uint256)

@public
def set(x: uint256):
    y: uint256 = x + 10
    z: uint256 = y * 2
    self.storedData = z

@public
@constant
def get() -> uint256:
    return self.storedData

Expected behavior

I expect there to be some code listing and the ability to inspect the local variables with 'vl'

If you encounter an error, please create a logfile using the following command and post the output here

$ embark run

Screen Shot 2019-04-21 at 9 46 49 AM

Do I have to use vyper-debug somehow with this?

Please provide additional information about your system

OS: MacOs 10.13.6 Embark Version: 4.0.2 Node Version: 9.5.0 NPM Version: 6.5.0

Sometimes issues are related to Embark's installation. Can you provide information on how Embark was installed?

npm -g install embark
iurimatias commented 5 years ago

@iamwilhelm the debugger does not currently work with vyper, sorry about that. You can use vyper-debug in the meanwhile however.