Debug works (turn off optimization)