调试Windows IoT浏览器应用程序 [英] Debugging Windows IoT Browser Application

查看:113
本文介绍了调试Windows IoT浏览器应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名学生开发人员和新人,所以请原谅我,如果这是错误的部分。

I'm a student developer and new here, so please forgive me if this is in the wrong section.

Windows IoT发布了一个示例浏览器应用程序(https:/ /github.com/ms-iot/samples/tree/develop/IoTBrowser)前一段时间我正在使用一个项目。我把它加载到一个Pi并将它指向Pi上的本地NodeJS服务器,因此它根本不需要访问Internet上的
。但是当我从Pi中删除互联网连接时,浏览器不会加载我在NodeJS服务器上托管的HTML页面(127.0.0.1:port)。当互联网连接存在时,页面加载正常。

Windows IoT released a sample Browser app (https://github.com/ms-iot/samples/tree/develop/IoTBrowser) a while ago that I'm using for a project. I have it loaded on a Pi and directing it to a local NodeJS server also on the Pi, so it shouldn't need to access the Internet at all. But when I remove the internet connection from the Pi, the browser does not load the HTML page I have hosted on the NodeJS server (127.0.0.1:port). When the internet connection is present, the page loads fine.

我希望能够调试浏览器,看看它在哪里寻找互联网连接,或者至少得到一些当互联网连接不存在时,来自浏览器的错误消息。任何人都可以告诉我该怎么做?

I'd like to be able to debug the browser to see where it's looking for that internet connection, or at least get some kind of error message from the browser when the internet connection is not there. Can anyone advise me as to what to do?

推荐答案

嗨莎拉,

你们将物联网浏览器项目设置为调试,如
中的文档所示 https:/ /developer.microsoft.com/en-us/windows/iot/samples/iotbrowser

Do you have the IoT Browser project set up for debug as shown in the documentation at https://developer.microsoft.com/en-us/windows/iot/samples/iotbrowser ?

您说"当我从Pi删除互联网连接时,浏览器不会加载我在NodeJS服务器上托管的HTML页面(127.0.0.1:port)"但我不清楚这里涉及哪些步骤。如果你要删除整个网络连接
,你期望Pi找到127.0.0.1地址?您希望它找到的浏览器应用程序的地址是什么? 您能否提供有关软件和硬件设置拓扑的更多详细信息?

You state "when I remove the internet connection from the Pi, the browser does not load the HTML page I have hosted on the NodeJS server (127.0.0.1:port)" but I am unclear as to what steps are involved here. If you are removing the network connection as a whole, how are you expecting the Pi to find the 127.0.0.1 address? What address are you giving to the browser app that you expect it to find?  Can you provide more detail as to your topology both software and hardware set up?

此致,

IoTGirl


这篇关于调试Windows IoT浏览器应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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