Hmm actually I think it’s a compiler flag, right ? I see that one that I cant debug has flag -O2 where the other has -g that would make sense, right ? 🙂
according to gcc manual, -g specifies debugging info ? And that can be used in combo with optimization flag -O2 ? Would that slow my program down ? Anyway I think I solved my own problem again, but will keep the thread in here, might be useful to other linux newbies 😉 Will just debug using -g and compile final version using -O2.