[sr-dev] git:4.0: core: fix condition on script callback number done inside EXTRA_DEBUG