Avatar of Marc Davis
Marc Davis
Flag for United States of America asked on

Visual Studiio and step through debug

Is it possible to use Visual Studio and step through debug of a REST service using the WCFTestTool? If so, how is that done?  I have a set of SOAP WCF services but I need to do a REST as well. I know one can do a WebInvoke after the OperationContract like:

[WebInvoke(Method = "POST", UriTemplate = "/GetTest",  RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]

The code is C# and Visual Studio 2017.

I do *not* have localadmin access.

Any information on that would be greatly appreciated.

C#RESTMicrosoft Visual Studio

Avatar of undefined
Last Comment
Marc Davis

8/22/2022 - Mon

If it's a RESTful service, then why don't you use something like Fiddler or Postman to debug with?
Marc Davis

But that doesn't give you the ability to step through debug. It will only give you the results of after the action. Fiddler isn't specific to RESTful thought either. You can use it a several different aspects like the SOIAP as well. But it doesn't let you step through debug.

Regardless of what tool you use, you can only "step through" the service if you have access to the source code and/or debug symbols. Even if the application is deployed to a server, (in theory) you can attach to the running process on the server using remote debugger. None of that works if you don't have access to the source or symbols.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
Marc Davis

Yes, that I have access to in relation to the code and the PDB.  I am looking at doing it locally is possible. VS can use the IISExpress which is what I had been doing but I'm trying to figure out how to step-through debug on the REST service. I am able to and have been able to on the SOAP with the WCF Test Client. But a REST doesn't show up in that. I know I probably would be able to do it if I attached to the IIS Worker process but like I mentioned I don't have the localadmin access on my machine so I can't even open IIS let alone iisexpress does not appear to create a worker process or it does but I cannot access it.

So, I am looking at other possible avenues, manners of being able to do a step-through debug knowing I have the PDB's and all.

Any thoughts suggestions on that?
Marc Davis

Any other avenues or suggestions?
Marc Davis

View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.