[solved] How to debug contracts?

When writing a contract, the output of aeproject compile is completely unhelpful:

===== Compiling contracts =====

Contract 'foo.aes has not been compiled'
reason:
undefined

Is there a way to get a more specific reason than undefined?

1 Like

Hey, @martingrigorov.chain or @hristiyanAE.chain should be able to help here :slight_smile:

1 Like

@hendi1 unfortunately the output is not from aeproject but the compiler itself. We can’t override messages of the compiler. Can you share more information about your contract so we can try to help you with the failing compilation.

Best,
Martin

2 Likes

hello,

I second meadow. Only tool I was able to find that allowed me to debug solidity with breakpoints and the ability to view variables while execution takes place( like normal java or javascript code debug). Works really well.

regars

Hey @hendi1,

The compiler should have a response with a comprehensive message of what went wrong already.
Please update your version of aeproject to @2.1.0 and come back to us with feedback if this works for you.

Regards,
Hris

1 Like

Yes, I can confirm that aeproject compile returns helpful output now, thanks :slight_smile:

3 Likes

marked this topic as solved in the title.