Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lines with multiple function calls interrupts more than one time. #76

Open
3esmit opened this issue Mar 3, 2017 · 0 comments
Open

Lines with multiple function calls interrupts more than one time. #76

3esmit opened this issue Mar 3, 2017 · 0 comments

Comments

@3esmit
Copy link

3esmit commented Mar 3, 2017

Consider the following contract:

pragma solidity ^0.4.2;

contract A {
  
  function f1() 
   internal 
   returns (int){
    return 1;
  } 
  
  function f2() 
   internal 
   returns (int){
    return 2;
  } 
  
  function f3(int a, int b) 
   internal 
   returns (int){
    return 1+2;
  } 
  
  
  function t() 
   returns (int){
    int i = f3(f1(),f2());
    return i;
  }

}

if you place your interruptor in line 26 and press resume, it will interrupt 3 times in that line.
This happens that it interrupts before entering the function, when you press resume it will enter f1 and return to that line, so it interrupts again, then enter f2 and return to that line, interrupts again and than goes to f3 and returns, interrupts again.

I would expect that it interrupts only once, if I want to enter that functions I can use step in button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants