The code will run until hitting the first break point, then it will pause and you can interrogate variables, etc. in Visual Studio.
There are two ways. Take a look at the "Getting Started with SNAP" guide. There's a section on debugging at the end of chapter 3.