private static string GetDebugPath(string releasePath)
{
string path, query;
if (releasePath.IndexOf('?') >= 0)
{
int index = releasePath.IndexOf('?');
path = releasePath.Substring(0, index);
query = releasePath.Substring(index);
}
else
{
path = releasePath;
query = String.Empty;
}
return ReplaceExtension(path) + query;
}