在 HTTPD 中调试 ASP 页面
我们正在为 Windows CE
设备开发 ASP
页面。我们需要调试ASP页面以减少开发工作量。 ASP 页使用 COM 组件从设备获取数据。 Windows CE 设备上运行的Web 服务器是Httpd。
如何调试Windows CE
设备上运行的ASP页面?
We are developing ASP
pages for a Windows CE
device. We need to debug the ASP pages for reducing the development effort. The ASP pages uses a COM component for getting data from the device. The web server running on the Windows CE device is Httpd.
How can we debug the ASP pages running in Windows CE
device?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您已经体验到使用 Windows CE 附带的 ASP 服务器进行开发的众多乐趣之一。通常无法进行实时调试,因此您只能使用 COM 组件中的
alert
语句或 DEBUGMSG。唯一的例外(也不是那么容易)是,如果您创建了自己的操作系统映像并且拥有启用了 KITL 的 BSP。在这种情况下,您可以构建一个包含 Web 服务器调试版本的操作系统,从 Platform Builder 部署操作系统,附加 KITL 并在服务器代码中设置断点。然后您可以使用它们来分析您自己的 ASP 页面。真是让人头疼。
无耻插件
尝试使用内置 ASP 服务器编写任何有用的内容是如此糟糕,以至于我们实际上编写了一个完整的替代品。我们的 Padarn Web 服务器 支持 ASP.NET 的子集,专为 CE 设计(尽管它运行在桌面也是如此),最重要的是,您可以使用 C#/VB.NET 和 Visual Studio 调试器来隐藏页面代码。唯一的缺点是它不是免费的 - 尽管如果时间有价值的话,它的成本肯定比尝试使用内置服务器要低。
You've run into one of the many joys of developing using the ASP server that ships with Windows CE. There is usually no way to do live debugging so you're largely relegated to using
alert
statements or DEBUGMSG from a COM component.The one exception, and it's not all that easy either, is if you've created your own OS image and you have a BSP with KITL enabled. In that case you can build an OS with the debug version of the web server in it, deploy the OS from Platform Builder, attach with KITL and set break points down in the server code. You can then use those to step into the parsing of your own ASP page. It's a complete headache.
Shameless plug
Attempting to write anything useful with the built-in ASP server is so bad that we actually wrote a complete replacement. Our Padarn Web Server supports a subset of ASP.NET, was designed for CE (though it runs on the desktop as well) and best of all you can use C#/VB.NET and the Visual Studio debugger for your page code behind. The only downside is that it's not free - though if time is of any value, it certainly costs less than trying to use the built-in server.