Modem manager and AT commands

Hello

How to set modem-manager into debug mode ?
It errors even after setting the debug flag.

Sending AT commands
sudo snap set modem-manager debug.enable=true
sudo mmcli -m 0 --command=AT
error: command failed: ‘GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Unauthorized: Cannot send AT command to modem: operation only allowed in debug mode’

Thanks

Try re-starting the service with

snap restart modem-manager

I restarted the device and it worked.
Thanks