Вопрос

Let's say I have a line of code like this (as an example)

HttpUtility.DecodeUrl(HttpUtility.EncodeHtml(getSomeText()));

When I step through the code, is there way in Visual Studio to find out what getSomeText() returned and then what EncodeHtml returned and finally what DecodeUrl returned without having to do this:

string someText = getSomeText();
string encodeHtml = HttpUtility.EncodeHtml(someText);
string DecodeUrl = Http.Utility.DecodeUrl(encodeHtml);

Thanks all.

Это было полезно?

Решение

If compound statements aren't doing what you expect, to me this indicates that your compound statements are too complex, and probably should be broken down anyway. However, that was not your question.

Why don't you just step into getSomeText, step through until you get to the return, and see what it returns?

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top