How to enable core dumps on ubuntu core

Hi. I’d like to collect core dumps in case something goes wrong on the user systems. How can I enable it on ubuntu core?