Cody
Cody

Reputation: 8954

Strange issue, variables do not exist in context

I think I'm losing my mind...what's going on here?

I've rebuilt, cleaned, built, etc....same thing happens.enter image description here

Upvotes: 1

Views: 152

Answers (1)

Cody
Cody

Reputation: 8954

Ok, so I figured it out. Turns out, either the debugger skips these variables OR asp.net is smart enough to not do anything with the variable UNLESS it has been used later on in the code.

Once I used the variable, ie, Console.WriteLine(userAgent), it showed up.

Upvotes: 1

Related Questions