I am trying to write some text before the line is throwing the exception, I want to view that text written by response, anyway I cannot see that, but only the exception is shown, Where can I find that text now.. The code below may give a clear picture.
res.Write(col1);
res.Write(colms);
String colName = colms[col1];
Now i am getting this exception at the third line:
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
I want to see those values as shown in code, but that is not working. In Java I used to do something like
System.out.println(col1);
and that will print to the netbeans console. Now i am using VS2010. How to achieve that same here?