Need to debug my Web API service that's requested from a client machine - need help, how do I do this?

后端 未结 5 1362
一整个雨季
一整个雨季 2020-12-15 22:56

I built a Web API service that\'s hosted locally on my machine in IIS. I have an iOS app that I\'m running via XCode that makes the call to the web service. The connectivi

相关标签:
5条回答
  • 2020-12-15 23:43

    you can use Postman client.

    First : run the API FROM visual studio Second : go to postman put the url and add the parameter in body

    More information : http://www.tutorialsteacher.com/webapi/test-web-api

    0 讨论(0)
  • 2020-12-15 23:43

    this often works for me i generally list all of the processes in IIS with appcmd command

    appcmd list wp
    

    and pretty much you know which process to attach by seeing the names of the web services

    if appcmd is not available please visit

    Here for configuring this

    0 讨论(0)
  • 2020-12-15 23:44

    Attach to process - http://msdn.microsoft.com/en-us/library/vstudio/3s68z0b3.aspx

    Make sure "Show processes from all users" is checked, and pick w3wp.exe

    You may need to hit the service once first to make sure its started.

    0 讨论(0)
  • 2020-12-15 23:52

    To debug an app that's hosted by IIS, you want to attach to process (in Visual Studio it's Tools->Attach to Process or Ctrl+Alt+P) and pick w3wp.exe from the list (you might have to check a few boxes for the process to show up).

    0 讨论(0)
  • 2020-12-15 23:58

    Another option is to use our free VS Extension called Conveyor https://marketplace.visualstudio.com/items?itemName=vs-publisher-1448185.ConveyorbyKeyoti With it you open up IIS Express to remote connections on your network (or even the web through tunnelling). Once you've done that you can debug the project directly from VS and connect to the Conveyor port number (or domain name via tunnelling) and debug as you would locally.

    0 讨论(0)
提交回复
热议问题