Marc Davis
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.
Thanks!
[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.
Thanks!
If it's a RESTful service, then why don't you use something like Fiddler or Postman to debug with?
ASKER
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.
ASKER
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?
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?
ASKER
Any other avenues or suggestions?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.