Methods to troubleshoot with smart contract interaction

I replicated the Digital Exchange Smart Contract Application on the algorand solutions website.

I managed to create 2 orders, but when i tried to create another one i got ‘transaction rejected by ApprovalProgram’. Without any further feedback.

I then presumed that it had to do with ASA’s on the account, so i added the functionality to remove orders, however again i got the same error; “transaction rejected by ApprovalProgram”.

My question is what methods exist to more quickly find out why the transaction is rejected. The error just means the stateful contract does not accept the input, but I cannot figure out what.

Thank you,

Carst

Yes you can.
See a tutorial with video: https://developer.algorand.org/articles/introducing-algorands-smart-contract-debugger/
and a written documentation: https://developer.algorand.org/docs/features/asc1/debugging/#using-dryrun-for-debugging-a-teal-program