I'm trying to debug a transaction on BSC network, the contract is not written by myself and it's not open source, is it possible to debug the transaction at assembly level?

I tried the "Remix Debugger" from "bscscan.com", it doesn't work and shows error like

Access to XMLHttpRequest ... has been blocked by CORS policy: ...

Also tried truffle: truffle debug 0x..tx_id... --network bsc, it shows error:

Error [ERR_UNHANDLED_ERROR]: Unhandled error. ({ code: -32000, message: 'header not found' })

How to do that?

2 Answers 2


There is none, so I made one: https://github.com/aj3423/edb enter image description here


Basically you can't do this, you can try with the op codes of the functions which is very very hard.

  • Debugging through the assembly op codes is exactly what I want, like reverse engineering an executable binary, if it's possible.
    – aj3423
    Apr 7, 2022 at 11:29
  • it is very hard. Go into the address of the smart contract's page BSC exploerer and there you can find it Apr 7, 2022 at 11:33
  • I tried but not work, as mentioned in the post, there is an error in dev-tools says "blocked by CORS policy".
    – aj3423
    Apr 7, 2022 at 11:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.