最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to enable debugging mode in SAPUI5 library 1.40.7 - Stack Overflow

programmeradmin0浏览0评论

I was using 1.26.10. So I was executing

jQuery.sap.debug(true)

But When I do the same for library 1.40.7. It is not loading any dbg files

I was using 1.26.10. So I was executing

jQuery.sap.debug(true)

But When I do the same for library 1.40.7. It is not loading any dbg files

Share Improve this question asked Oct 12, 2016 at 9:25 Prashant GuravPrashant Gurav 5037 silver badges17 bronze badges
Add a ment  | 

4 Answers 4

Reset to default 5

Hit CtrlAltShiftS to open UI5 Diagnostics. There you can expand the panel "Technical Information" and switch on the Option "Debug Sources".

See the official docu for this: https://help.sap./saphelp_uiaddon20/helpdata/en/c9/b0f8cca852443f9b8d3bf8ba5626ab/content.htm

just add in the URL sap-ui-debug=true as query string ?....&...

CtrlAltShiftS and use Technical Information → Debug Sources is basically correct but there is one restriction which might prevents this.

The UI5 application needs to be initialized with productive: false

Check in your index.html if the productive parameter of sap-ui-config is set to true and change it temporarily to false:

<script>
    window["sap-ui-config"] = { "productive": false };
</script>

As others pointed out, adding the query parameter sap-ui-debug=true in the URL would enable debug mode.

Adding ui5 namespace of your UI5 application in the query in place of the boolean true would only load files for that namespace to debug making page load faster. example: for namespace foo.bar, the query param should be sap-ui-debug=foo/bar

发布评论

评论列表(0)

  1. 暂无评论