2021-05-18 06:44:43 Warning: DebugKit is disabling itself as your host cakephp.my_domain.com is not in the known safe list of top-level-domains (localhost, invalid, test, example, local, cakephp.my_domain.com)
I’m not familiar with the tld config option, but looking at the source code and the documentation, you can only specify a “top level domain” (TLD) as a value. That means com, net, dev etc. You cannot specify a full URL.
Valid value would be
// Allow e.g. http://foo.bar.dev or http://my-shop.local domains locally
Configure::write('DebugKit.safeTld', ['dev', 'local', 'example']);
If you’re trying to enable DebugKit on a public/production domain, I’d recommend against that. DebugKit gives out a lot of information that should not be public.
If you want my_domain.com, you’ll need this, but do remember my warning about showing non-public information to the public if you are using this online.
Adding com or fr is indeed not a safe thing to do in general. If you know what you’re doing, and make sure that setting never gets to a production site, then it’s okay, but be very careful with it.