Pa debug with deriving (WIP)