Setting up debugging for vs and fixing bugs