Create RunService:IsDebugging

As a Roblox developer, it is currently impossible to detect if the script is being debugged.
As reported in Studio won't correctly complete BindToClose and PlayerRemoving, item 12, there is an incorrect 30 seconds freeze while debugging. If there was a IsDebugging statement, I could throw an exception in the code to avoid this error.
If Roblox is able to address this issue, it would improve my development experience because I could run specific code to treat specific situations while debugging.

3 Likes