truffle-debugger
truffle-debugger copied to clipboard
Instruction pointer jumps seemingly arbitrarily
When stepping through code line by line, sometimes the instructor pointer ends up pointing to some seemingly arbitrary Solidity code. (It's arbitrary because it's code that has nothing to do with the executing code.)
I think this usually happens after a function returns, but I have no great way of verifying this.
Can you post more information please? At least truffle version
, but if you can include the output log showing this behavior (and/or source), that'd be helpful. Thanks!
Truffle version is 4.1.7. Unfortunately I don't have source I can post but if I come across this again I'll add to this thread.
Try v4.1.8, and do truffle migrate --reset --compile-all
I have this issue with Truffle v4.1.13 using Solidity v0.4.24 (solc-js) and debugging from transaction on Ganache (cli) v6.1.3 (ganache-core: 2.1.2). I get to a specific "require" call on line 33 and it jumps arbitrarily to line 109. Javascript VM on remix.ethereum.org works. Truffe+Ganache throws VM exceptions. Planning on testing on private network next. The debugger definitely jumps at random places. Also nodejs v8.11.2 .
https://gist.github.com/collincusce/82b65dcb53b260cb0fbce6f275de687d