We know that once we enable debug mode via “Ctrl+Alt+Shift+P”, this setting will be persisted: even if you turn off your laptop and launch the application tomorrow, the debug mode will still be there.

In Chrome development tool, there is an Application tab which records this setting via key value pair using Local Storage.

As usual we can still use debug to investigate what has happened when the checkbox “Use Debug Sources(reload)” is clicked.
In Chrome development tool Elements tab, click the small arrow icon to enter the element inspection mode, then click the checkbox, then its html source code will be automatically navigate.

Perform global search via keyword “useDbgSources”, and then we can find the event handler onUseDbgSources for debug mode set:

Set a breakpoint on this function, then mark the checkbox in UI, breakpoint is triggered as expected:

Within the function, we can know the debugging flag is set via localStoage API: window.localStorage.setItem

This API will change the following file in my laptop:


If I open the changed file via some SQLite management tool, I can find the corresponding entry with key sap-ui-debug and value ‘X’ set:

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

SAP UI5 应用的调试标志位的本地存储逻辑 - local storage 使用的一个例子相关推荐

  1. SAP UI5里的senderActive标志位

    Created by Wang, Jerry, last modified on Feb 11, 2015 要获取更多Jerry的原创文章,请关注公众号"汪子熙":

  2. 三、Android系统内核编译及刷机实战 (修改反调试标志位)

    前言 在 二.Android系统源码编译及刷机实战 一文中,我们成功编译了Android 4.4.4_r1源码并刷入系统了 Nexus 5 设备,下面是设置界面的信息.上面显示的内核版本信息是3.4. ...

  3. 深入学习SAP UI5框架代码系列之五:SAP UI5控件的实例数据修改和读取逻辑

    这是Jerry 2021年的第6篇文章,也是汪子熙公众号总共第277篇原创文章. 系列目录 (0) SAP UI5应用开发人员了解UI5框架代码的意义 (1) SAP UI5 module懒加载机制 ...

  4. pcmark2 android测试,PCMark安卓版升级:支持64位ARM架构 存储测试为Storage 2.0

    作为一款跨平台的评测软件,PCMark的Android版本最近升级到了v3.0.4054.这个版本变化很大,官方支持64位ARM架构,跑分不能向下比较. ARM处理器长期支持64位,但支持的APP应用 ...

  5. SAP UI5 应用读取 CSRF token 的 HTTP head 请求逻辑解析

    SAP UI5 应用在发送 OData batch 请求之前,会通过下列的_createBatchRequest方法构造 batch 请求对象: var oBatchRequest = that._c ...

  6. SAP UI5 group function调试

    Created by Wang, Jerry, last modified on Feb 05, 2015 要获取更多Jerry的原创文章,请关注公众号"汪子熙":

  7. 如何在 SAP UI5 应用中集成第三方库 :一个在移动设备上查看 Web 应用打印调试信息的小技巧

    这是 Jerry 2021 年的第 43 篇文章,也是汪子熙公众号总共第 320 篇原创文章. 做 Web 开发的程序员,无论使用 SAP UI5,还是 Angular,React,Vue,每天都离不 ...

  8. SAP UI5 应用开发教程之四十九 - 如何在桌面电脑端调试运行在手机上的 SAP UI5 应用试读版

    一套适合 SAP UI5 初学者循序渐进的学习教程 教程目录 SAP UI5 本地开发环境的搭建 SAP UI5 应用开发教程之一:Hello World SAP UI5 应用开发教程之二:SAP U ...

  9. 深入学习SAP UI5框架代码系列之四:SAP UI5控件的元数据实现

    这是Jerry 2021年的第5篇文章,也是汪子熙公众号总共第276篇原创文章. 系列目录 (0) SAP UI5应用开发人员了解UI5框架代码的意义 (1) UI5 module懒加载机制 (2) ...

最新文章

  1. android获取当前应用占用的内存大小,Android分析已安装应用占用内存
  2. 解决标准FPGA资源丰富却浪费的问题
  3. Flex 3 与 Flex 4 beta 之间的区别
  4. suse php5,简简单单搭建linux SuSE LAMP环境
  5. 测试开发python面试_python测试开发面试之深浅拷贝
  6. 利用Python只需3行代码即可生成验证码
  7. List与数组的相互转换
  8. 关于”要执行请求的操作,WordPress需要访问您网页服务器的权限”
  9. python arduino 蓝牙_如何使用蓝牙模块从Android设备控制Arduino
  10. win10 软路由_千元完美的家用低功耗软路由:J4125 迷你电脑GK41开箱体验!又是播放器,也是服务型AIO!...
  11. 李乐为担任BCF理事
  12. java 502错误_nginx 502 超时错误解决(java版本)
  13. 2019配电安规电子版_2018年配电安规.docx
  14. 用matlab求带参数d积分,用MATLAB求定积分
  15. 关联规则:R与SAS的比较
  16. 基于Gensim创建词向量
  17. 【Knowledge Graph】C3KG: A Chinese Commonsense Conversation Knowledge Graph
  18. 如何实现复制文本到剪贴板?
  19. c#操作word文档(转自小排_流浪狗)
  20. 【笔记】canvas 绘制足球 —— 第一步 画个球体

热门文章

  1. 远程桌面mstsc /console(/admin) 的运用
  2. DBGrid内使用CheckBox功能
  3. 光电数字直接式中高压电力电能表
  4. IBM服务器巡检流程
  5. MySQL数据类型和Java数据类型对应关系表
  6. 一步步教你前端vue项目开发中如何解决跨域问题
  7. eclipse中护眼色设置
  8. 前端面试题集锦(一)之HTML部分
  9. 11. Java基础之继承
  10. 英语语法最终珍藏版笔记-18what 从句的小结