Content
@
0 reply
0 recast
0 reaction
emo.eth
@emo.eth
this one goes out to all the haters who said "you will never figure out the rust debugger and fix sourcemaps in foundry's solidity debugger"
7 replies
0 recast
23 reactions
shazow
@shazow.eth
That's beautiful. Can I run this on arbitrary bytecode/without source code?
1 reply
0 recast
0 reaction
emo.eth
@emo.eth
this is the builtin forge debugger! sourcemaps have been broken for cross-source (eg inherited) function calls for several months now; this is a screenshot of it correctly finding the (inherited) increment() function with my fix 🤠available with `cast run --debug` or `forge script/test --debug`
1 reply
0 recast
0 reaction
shazow
@shazow.eth
Lol yea, sorry unrelated question from your fix (very nice!), just figured you might know. I haven't used the debugger yet. I mostly deal with debugging raw bytecode, was wondering if there's a way to give it arbitrary bytecode (and some input) and step through it without source code.
1 reply
0 recast
1 reaction
emo.eth
@emo.eth
totally – you can deploy/etch the bytecode in a forge test/script or against a real transaction with cast
1 reply
0 recast
1 reaction
shazow
@shazow.eth
Ah good call, I'll try that! Thank you.
0 reply
0 recast
1 reaction