如何在本地搭建服务进行程调试
发布时间:2017-04-09 02:22
如果你没有服务器,或者服务器只支持发布不支持调试,那么你就有必要在本地搭建服务来进行程序的调试.下面是小编给大家整理的一些有关在本地搭建服务进行程调试的方法,希望对大家有帮助!
在本地搭建服务进行程调试的方法
设置断点

选择工具栏中的 调试-->附加到进程

在可用进程里面找到 w3wp.exe , 点击 "附加" 按钮.这里的 w3wp.exe 进程可以理解为对应的 iis 进程.我们将 iis 手动添加到了 visual studio 的 web service 服务上.

点击附加后的界面如下

当手机上访问电脑上的 web service 时,进入断点调试.

用局域网来访问本地电脑的 webservice , 用如下方式获取本地的 ip 地址.

下面是在 ipad 上访问局域网里 webservice 服务的显示效果.

END
如何在本地搭建服务进行程调试的评论条评论