简体   繁体   English

如何使用argon.js和Argon4进行远程调试?

[英]How to do remote debugging with argon.js and Argon4?

类似于使用iOS(使用Safari)或Android(使用Chrome)进行远程调试,我想使用Argon进行相同的操作。

我被推荐为此使用Vorlon.jsjconsole.com ,欢迎任何其他建议/想法。

I assume you mean debugging argon.js apps using Argon4, the current version of the iOS app (at http://argonjs.io ). 我假设您的意思是使用Argon4(iOS应用程序的当前版本)调试argon.js应用程序(位于http://argonjs.io )。

Like other apps that use Apple's built-in WkWebView, you can't use a remote debugger, since Apple won't allow the remote debugger to work for any app except mobile safari. 像其他使用Apple内置WkWebView的应用程序一样,您不能使用远程调试器,因为Apple不允许远程调试器对除移动浏览器之外的任何应用程序起作用。 Which makes sense, since there are lots of technologies for building mobile apps using web tech, and people don't want folks poking around inside their apps. 这是有道理的,因为有许多使用Web技术构建移动应用程序的技术,而且人们不希望人们在其应用程序中四处逛逛。

When developing a website using argon.js, if you are doing geospatial AR (essentially, anything that doesn't use Vuforia), you can just run the app in mobile Safari and use the remote debugger as you might hope. 使用argon.js开发网站时,如果您要进行地理空间AR(本质上是不使用Vuforia的任何产品),则可以在移动Safari中运行该应用程序,并按需要使用远程调试器。

My general approach is to developing and debugging with argon.js on Argon4 is: 我的一般方法是在Argon4上使用argon.js进行开发和调试:

  • first pass through, I debug on desktop in Safari or Firefox or Chrome (so I get the desktop debugger of my choice). 首先,我在Safari或Firefox或Chrome浏览器中的桌面上进行调试(因此我选择了桌面调试器)。 This helps find many of those annoying little errors and typos. 这有助于找到许多烦人的小错误和错别字。 Take a look at some of the samples, such as the Vuforia samples, which re-orient the content to ensure it's visible even when there is no Vuforia running. 看一下一些示例,例如Vuforia示例,这些示例重新调整了内容的方向,以确保即使没有运行Vuforia时内容也可见。 I did this explicitly to enable me to see the content and debug. 我明确地这样做是为了使我能够看到内容并进行调试。
  • second pass in Argon4 (since I built the app myself during development, I can do remote debugging), but you could use mobile Safari something that's closer to Argon, and still get remote debugging. Argon4的第二遍操作(因为我是在开发过程中自行构建的,因此可以进行远程调试),但是您可以使用移动Safari接近Argon的工具,并且仍然可以进行远程调试。
  • finally, I test in Argon4 itself. 最后,我在Argon4本身中进行测试。 You can use the console to print things to, look for errors and so forth. 您可以使用控制台将内容打印到,查找错误等。 Not idea, I know. 不知道,我知道。

FYI you may find http://vorlonjs.com/ is useful for remote debugging an app while running in Argon. 仅供参考,您可能会发现http://vorlonjs.com/对于在Argon中运行时对应用程序进行远程调试很有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM