简体   繁体   English

仅在Dartium中调试由Dart编写的客户端Webapp就足够了吗?

[英]Is it enough to debug my Dart-written client webapp in Dartium only?

I am new to Dart, installed the language SDK and Dartium, followed instructions to run Dart code inside it and it works. 我是Dart的新手,安装了SDK和Dartium语言,并按照说明在其中运行Dart代码,并且它可以运行。

Is that a recommended way to build and debug my client webapp using Dartium and then compile it with dart2js at only final stage? 是否建议使用Dartium来构建和调试客户端Web应用程序,然后仅在最后阶段使用dart2js对其进行编译?

Should I catch, debug and fix all bugs in Dart source code and then be sure that it won't fail when JS code is compiled and run if it runs good in Dart or is there still a stage of debugging it as JavaScript after Dart part is done? 我应该捕获,调试和修复Dart源代码中的所有错误,然后确保在JS代码在Dart中运行良好时,如果在JS代码进行编译和运行时它不会失败,或者在Dart之后仍存在将其调试为JavaScript的阶段已经完成了?

Usually during development and testing Dartium is used, then before deployment, test your app in different target browsers. 通常在开发和测试期间使用Dartium,然后在部署之前,在不同的目标浏览器中测试您的应用程序。

There are occasionally issues that only occur when you run your applications built JS in the target browsers. 有时只有在目标浏览器中运行应用程序内置的JS时才会出现这些问题。

It's also worth tuning the build output size (for example introduce lazy loading, ...). 还值得调整构建输出的大小(例如,引入延迟加载等)。

Often also CSS needs to tailored to look the same on all browsers. 通常,还需要调整CSS以使其在所有浏览器上看起来都一样。 This is nothing Dart can help you with. Dart无法提供任何帮助。

Currently DDC (Dart Development Compiler) is work in progress that allows fast change-reload cycles for Chrome or other browsers that support ES5 or ES6. 目前,DDC(Dart开发编译器)正在开发中,可以为支持ES5或ES6的Chrome或其他浏览器提供快速的更改-重新加载周期。

You can also use Travis or other CI systems with or without Selenium to frequently run tests on all kinds of browsers. 您也可以使用Travis或其他带有或不带有Selenium的CI系统来在各种浏览器上频繁运行测试。

暂无
暂无

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

相关问题 dart:HTTPRequest在JS中不起作用,但仅在Dartium中起作用 - dart: HTTPRequest does not work in JS but in Dartium only Dart-JS interop:在Dartium中运行时,JS对象无法加载 - Dart-JS interop: JS object not loading when running in Dartium 如果Dart和JS文件都在页面中链接,那么Dartium中将运行什么代码? - What code wiill run in Dartium if both Dart and JS files are linked in the page? 我的下拉菜单只有在我足够快的情况下才会打开 - My drop down menu only opens if I am fast enough 为什么我的 JavaScript function 仅在调试中找不到? - Why is my JavaScript function not found only in debug? 如何将Vue编写的小部件嵌入Vue Web应用程序 - How to embed widget written by vue into a vue webapp 如何在我的Web应用程序中添加多个社交登录名并在客户端进行身份验证? - How to add multiple social logins to my webapp and do authentication on client side? 如何检查我的公共API的XMLHttpRequest是来自我自己的webapp还是来自第三方客户端(以确保优先级)? - How can I check if an XMLHttpRequest to my public API is from my own webapp or from a third-party client (to ensure priority)? 如何使服务器上的文件可用于客户端Web浏览器(使用Java编写的服务器) - How do I make files on my server available to client webbrowser, server written in Java 为什么我的JS仅在调试时才能工作? - why is my JS is working only when I debug?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM