当前位置:网站首页>Introduction to micro build low code zero Foundation (lesson 3)
Introduction to micro build low code zero Foundation (lesson 3)
2022-04-23 18:50:00 【Low code preacher】
After opening the wechat low code account , We just stepped into the field of software development . Whether you are installing the official template for secondary development , Or create custom applications from scratch . Since development requires the ability to troubleshoot , The technical term is debug, Also called breakpoint debugging .
Because we are an online integrated development environment , You can't compete with traditional development IDE It's so convenient in the car . So it's not like traditional development that can interrupt , When the program runs to the breakpoint, it stops automatically , We can look at the variables from the stack . Micro build low code development language is javascript, Then we need to master javascript How to debug the program .
There are four debugging methods in micro build
1 Output at console
The console is provided in the application editor , On the console, we can observe the methods and values of variables

You can enter the variable name directly on the console , such as $page, Observe the properties and methods of this variable

Expand the object to see the attribute and method name of the variable , Convenient for us to call middle note code.

2 Output... In the browser
Sometimes some errors can't be checked in the console , We need to view it in the browser , Click the preview button

In the browser, we need to press F12 Open developer tools , Check the specific error reporting information in the developer tool

The red in the console is the specific error , Sometimes error details are printed , Check the error information . The ability of debugging is a necessary ability for programmers , Sometimes you need to think for yourself , Most of us first Baidu to see if someone has solved similar problems .
Why can you Baidu , Because many people have the spirit of sharing , For example, the article you see now is compiled by bloggers based on their own experience , For those who study later, I have a reference .
3 Output in low code
Most of the errors in console output are syntax errors , Or you broke the rules of grammar , Either you called the wrong method . Another type of error is logical error , The so-called logical error is that the expected result is not obtained , For example, you define a variable , It was expected to be worth it , When the results were previewed, I found nothing , This is the time for troubleshooting .
How to troubleshoot ? We need the help of pile driving technology , The so-called piling is to pass in low code ,console.log() To output ,console.log() Multiple parameters can be passed in the method , Parameters are separated by commas .

In the figure above, the part I marked in red is pile driving , I output the value and type of the variable , See where the program went wrong . The output information is still viewed in the console , You can view it in the console of the application editor , You can also view it in the developer tool of the browser .
If you want to write the correct program, you need constant debugging , Finally, the results will be in line with expectations .
4 Output in applet
In addition to the above debugging methods , If we call wechat api Of , There is no effect in the browser , At this time, we need to publish the program to the mobile phone for viewing . Click the Publish button , It can be released as a preview version for debugging

Some small partners don't know how to debug small programs , Click the three points in the upper right corner of the applet , Debugging can be found , The debugging interface opens , Check whether there is any error information inside , Or check the output results for troubleshooting

So you can see the specific information .
summary
This session explains how to debug in low code. , After mastering the method, it's easy to work .
版权声明
本文为[Low code preacher]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231846104639.html
边栏推荐
- : app: transformclasseswithrobustfordevrease meituan hot repair compilation error record
- ESP32 LVGL8. 1 - img picture (IMG 20)
- Use bitnami / PostgreSQL repmgr image to quickly set up PostgreSQL ha
- kettle庖丁解牛第17篇之文本文件输出
- Simple use of viewbinding
- Implementation of TCP UDP communication with golang language
- Sentinel服务熔断实战(sentinel整合ribbon+openFeign+fallback)
- 昇腾 AI 开发者创享日全国巡回首站在西安成功举行
- From technical system to business insight, the closing chapter of the practice of small and medium-sized R & D team structure
- Machine learning theory (8): model integration ensemble learning
猜你喜欢

ESP32 LVGL8. 1 - img picture (IMG 20)

12个例子夯实promise基础

从技术体系到商业洞察,中小研发团队架构实践之收尾篇

Chondroitin sulfate in vitreous

Kettle paoding jieniu Chapter 17 text file output

Machine learning theory (7): kernel function kernels -- a way to help SVM realize nonlinear decision boundary

Setting up keil environment of GD single chip microcomputer

ESP32 LVGL8. 1 - msgbox message box (msgbox 28)
![[mathematical modeling] - analytic hierarchy process (AHP)](/img/ff/2350c9604a03fff6a6a751aa3cfa3b.png)
[mathematical modeling] - analytic hierarchy process (AHP)

机器学习理论之(7):核函数 Kernels —— 一种帮助 SVM 实现非线性化决策边界的方式
随机推荐
迁移学习进阶
Esp32 (UART 485 communication) - 485 communication of serial port (3)
机器学习理论之(8):模型集成 Ensemble Learning
Halo open source project learning (VII): caching mechanism
mysql_linux版本的下载及安装详解
[mathematical modeling] - analytic hierarchy process (AHP)
22年字节跳动飞书人力套件三面面经
Fundamentals of machine learning theory -- some terms about machine learning
ESP32 LVGL8. 1 - input devices (input devices 18)
Nacos集群搭建和mysql持久化配置
c#:泛型反射
WebView saves the last browsing location
With the use of qchart, the final UI interface can be realized. The control of qweight can be added and promoted to a user-defined class. Only the class needs to be promoted to realize the coordinate
程序员如何快速开发高质量的代码?
Esp32 (UART receiving and sending) - receiving and sending communication of serial port (4)
Database computer experiment 4 (data integrity and stored procedure)
Domestic GD chip can filter
ESP32 LVGL8. 1 - label (style 14)
How to virtualize the video frame and background is realized in a few simple steps
WebView opens H5 video and displays gray background or black triangle button. Problem solved