cancel
Showing results for 
Search instead for 
Did you mean: 

SapUi5 application code is visible in debugging console and i need to disable debugging

0 Kudos

If i run application using eclipse and debug in chrome i can see my code and debug and change value on command console.

If i run application directly from server then still i can change value on command console and debug and view my source code.

Security concerns are very important since some way or other way someone can change values on debug.

Is there any way to disable debugging tools on all browsers and secure ui5 applications.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Try to add this code into index.html prior to calling the script for sap.ui.core

<script>

window["sap-ui-config"] = {

resourceRoots : { "sap.ca.common.uilib": "resources/sap/ca/common/uilib/", "resources" : "resources/" },

productive: true };

</script>

sagar17bansal
Participant
0 Kudos

Hi Rutvik,

Were you able to hide the js code from the sources tab using the above code?

I tried placing this code just above the bootstrapping of UI5 core but it didn't work for me.

Thanks,

Sagar Bansal

former_member365727
Active Contributor
0 Kudos

There is no option to disable debugging.....

you can create 'Component-preload.js' using GRUNT/GULP which will compress and uglify JS, this way even the source code is loaded on browser it will be bit difficult