Change setting of --check-bounds in user code?

I’m adding a ‘–debug’ flag to my code, so that users/developers can set an integer ‘debug level’ to run the code with. I’d like one of these levels to force bounds-checking, i.e. behave as if I’d started Julia with --check-bounds=yes. Is this possible?

1 Like