I created a service WCF with Visual Studio 2017 and a console application to test it.
ConsoleAppTestWCF has a service Reference to TestWCF. There is the main method in Programm.cs :
static void Main(string[] args)
{
ServiceReference1.Service1Client client = new ServiceReference1.Service1Client();
Console.WriteLine("Give a value");
String input = Console.ReadLine();
int value;
if (int.TryParse(input, out value))
{
Console.WriteLine(client.GetData(value));
}
client.Close();
}
My question is : How can I do to debug (with breakpoints, etc) the web service (in this case GetData
method) ?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.