truffle-debugger icon indicating copy to clipboard operation
truffle-debugger copied to clipboard

Instruction pointer jumps seemingly arbitrarily

Open dmdque opened this issue 6 years ago • 4 comments

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.

dmdque avatar May 17 '18 22:05 dmdque

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!

gnidan avatar May 18 '18 16:05 gnidan

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.

dmdque avatar May 18 '18 17:05 dmdque

Try v4.1.8, and do truffle migrate --reset --compile-all

gnidan avatar May 18 '18 18:05 gnidan

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

collincusce avatar Jul 16 '18 19:07 collincusce