I use it in a lot of mods to automatically detect the mod's name since i am too lazy to manually set that for all of my 200 mods, a bug report came in the other day where it failed to get the expected output from the debug call:
https://mods.factorio.com/mod/elevated-pipes/discussion/687b6415473a89065ffff701