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

**URL:** <https://discourse.julialang.org/t/change-setting-of-check-bounds-in-user-code/69038>\
**Category:** General Usage\
**Tags:** question\
**Created:** [October 1, 2021, 11:52am UTC](https://discourse.julialang.org/t/change-setting-of-check-bounds-in-user-code/69038 "2021-10-01T11:52:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnomotani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnomotani/32/26753_2.png) [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Post date:** [October 1, 2021, 11:52am UTC](https://discourse.julialang.org/t/change-setting-of-check-bounds-in-user-code/69038/1 "2021-10-01T11:52:37Z")

</div>

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?
