需要调试是从一个客户机请求我的Web API服务 - 需要帮助,我该怎么办呢? [英] Need to debug my Web API service that's requested from a client machine - need help, how do I do this?

查看:205
本文介绍了需要调试是从一个客户机请求我的Web API服务 - 需要帮助,我该怎么办呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建了本地所托管在我的机器在IIS中的Web API服务。我有一个iOS应用程序,我可通过X code,使调用Web服务正在运行。连接性是存在的,并且工作。在iOS应用成功,使连接到我的发布的Web服务。

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 connectivity is there, and works. The iOS app successfully makes the connection to my published web service.

现在的问题是我的web服务返回一个非描述性错误给客户端(IOS),所以我需要能够做的是通过Web服务code步骤,而运行我的iOS应用程序。

The problem is my web service is returning a non descriptive error to the client (iOS), so what I need to be able to do is step through the web service code while running my iOS app.

因此​​,简言之:

  1. 在我通过我的MacBook运行iOS应用程序,并将其连接到我的.NET Web API服务。
  2. 在我的Web API服务发布到我本地IIS,并返回一个错误返回给客户端。
  3. 在断点没有被击中在Visual Studio中 - 我需要附上我的Visual Studio调试器到一个特定的过程?我试着在运行我的iOS应用程序,但没有成功运行我的Web服务在调试模式下。

如何加强?

推荐答案

附加到进程 - <一个href="http://msdn.microsoft.com/en-us/library/vstudio/3s68z0b3.aspx">http://msdn.microsoft.com/en-us/library/vstudio/3s68z0b3.aspx

请显示所有用户的进程被选中肯定,并挑选程序w3wp.exe

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.

这篇关于需要调试是从一个客户机请求我的Web API服务 - 需要帮助,我该怎么办呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆