Add runtime util to check if in debug mode.