Question

How can I disable UI5's diagnostic tool altogether in my application? It's triggered by key combination ALT+Shift+S which stands for letter Ś. I do not run my application with debug=true, so it should be false by default. Unfortunatelly I haven't found answer to my question in sapui5 documentation. I also tried put

sap.m.Support.off();

line, but it didn't work for me.

Was it helpful?

Solution

Looking at the code I think you can disable by setting the productive configuration property to true.

The configuration needs to appear before the bootstrap in the header.

<script type="text/javascript">
  window["sap-ui-config"] = {
    productive: true
  };
</script>

I've created a JSBIN example.

http://jsbin.com/waqiyimo/1/edit

Regards, Jason

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top