Sets the debug level. This affects the output to console event log during runtime and for scripts executing in edit mode.