My code cracked? That's amusing (6)
I believe the answer is:
comedy
'that's amusing' is the definition.
I can't judge whether this definition defines the answer.
'my code cracked?' is the wordplay.
'cracked?' indicates anagramming the letters.
'my'+'code'='mycode'
'mycode' with letters rearranged gives 'COMEDY'.
Can you help me to learn more?
(Other definitions for comedy that I've seen before include "Play with happy ending" , "Play about identical twins" , "Dante's divine work" , "film like Doctor in the House" , "Light amusing play or film" .)