-
Notifications
You must be signed in to change notification settings - Fork 2.3k
truffle test --debug
hangs without starting the debugger
#6163
Comments
For more context, I've started diving into the debugger a bit and it looks like it's stuck in the It looks like |
Hm, you can try disabling the confirmation listener. Not sure if that would make it work better or if it'd cause it to stop working altogether, but it's worth a shot :) See docs here about how to specify |
@gnidan Well it changed the output a bit, but it's still hanging. Now when I inspect the ganache output I see a bit more "stuff":
Normally it'd just keep repeating the |
I thought maybe this was a MacOS problem so I tried on my Linux machine with the exact same results. |
Hm, really weird. How much gas does the Not sure what else might be going wrong here. Maybe you could try running |
Issue
When I try to use in-test debugging, it hangs my terminal. Ganache seems to show the contract getting deployed successfully, and the output from the
truffle test
command shows the contract getting successfully compiled.However, then it just says "Contract: MyContract" and stalls. I can see pairs of calls to eth_getBlockByNumber being called about once per second in the ganache output. My contract
Steps to Reproduce
function tokenURI(address creator, uint256 tokenId) external view returns (string memory);
)tokenURI
function in the contract, and wrap it indebug()
Expected Behavior
The debugger should start in the terminal when running
truffle test --debug
Actual Results
The terminal hangs, showing only "Contract: MyContract".
Environment
truffle version
): 5.11.2node --version
): 18.17.2npm --version
): 8.19.4The text was updated successfully, but these errors were encountered: