Solved by Shisho_Sama in post #2 
              
              
                OK, it was caused becasue of the release libs were in the PATH and it would read the libs and crash. 
It’d be great to have different names for debug and release codes so the headaches regarding these would be minimized.