Prashant Gurav
Prashant Gurav

Reputation: 503

How to enable debugging mode in SAPUI5 library 1.40.7

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

Upvotes: 1

Views: 7312

Answers (4)

Ankit Shivhare
Ankit Shivhare

Reputation: 11

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

Upvotes: 1

matbtt
matbtt

Reputation: 4231

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

Upvotes: 5

Hilmar Demant
Hilmar Demant

Reputation: 525

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>

Upvotes: 1

gmodrogan
gmodrogan

Reputation: 323

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

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

Upvotes: 1

Related Questions