Fix stop condition in stripe finder
Add gdb debug flags for debug build