pre-commit handler for subscripts, pre-commit_debug_code