Update debug.cpp

fix assignment into comparison