Enable core dumps on Mac OS X Monterey M1 Pro

I use my Macs to develop MySQL software, it is extremely useful to analyse some crashes that happen when I develop new software. It has worked to enable this is in all my previous Macs. But I haven't found any way to enable it on the new Mac.

I tried ulimit -c unlimited, I tried to set sudo chmod a+rwx /cores I tried creating /etc/launchd.conf

But still no crash files appeared.

Any ideas are welcome.

Enable core dumps on Mac OS X Monterey M1 Pro
 
 
Q