Difference between revisions of "AppSuite:Debugging the UI"

(Which files failed to load?)
 
(15 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<div class="title">Debugging the UI</div>
+
The content on this page has moved to https://documentation.open-xchange.com/latest/ui/miscellaneous/debugging.html
'''Synopsis:''' A collection of hints to debug during UI development
 
__TOC__
 
== What capabilities are available? ==
 
<pre class="language-javascript">
 
_(ox.serverConfig.capabilities).pluck("id").sort();
 
</pre>
 
== Which files failed to load? ==
 
<pre class="language-javascript">
 
requirejs.s.contexts._.registry
 
</pre>
 
  
== Check settings ==
+
Note: Open-Xchange is in the process of migrating all its technical documentation to a new and improved documentation system (documentation.open-xchange.com). Please note as the migration takes place more information will be available on the new system and less on this system. Thank you for your understanding during this period of transition.
<pre class="language-javascript">
 
// check core settings
 
require('settings!io.ox/core').get();
 
// check mail settings
 
require('settings!io.ox/mail').get();
 
</pre>
 
 
 
== Clear all persistent caches ==
 
Please mind that this does not clear the regular browser cache! It clears localStorage, IndexedDB, and WebSQL.
 
<pre class="language-javascript">
 
ox.cache.clear();
 
</pre>
 
 
 
== Debug relogin ==
 
<pre class="language-javascript">
 
ox.autoLogoutRestartDebug();
 
</pre>
 
 
 
== Enable/disable capability via URL hash ==
 
Just add the parameter "cap" to URL hash. A leading minus disables a capability. Multiple capabilities separated by comma. Example:
 
<pre language="none">
 
...&cap=emoji,-calendar
 
</pre>
 
 
 
== Disable source caching via URL hash ==
 
Add the parameter "debug-js=true" to URL hash. Example:
 
<pre language="none">
 
...&debug-js=true
 
</pre>
 
 
 
== Debug a specific folder ==
 
If you want to get details of a specific folder, just inspect it via dev tools and look for data-obj-id="...". Copy the id and run the following in console:
 
<pre class="language-javascript">
 
void require('io.ox/core/api/folder').get({ folder: 'default0/INBOX' }).always(_.inspect);
 
</pre>
 
 
 
[[Category:AppSuite]]
 
[[Category:UI]]
 
[[Category:Developer]]
 

Latest revision as of 10:02, 22 May 2017

The content on this page has moved to https://documentation.open-xchange.com/latest/ui/miscellaneous/debugging.html

Note: Open-Xchange is in the process of migrating all its technical documentation to a new and improved documentation system (documentation.open-xchange.com). Please note as the migration takes place more information will be available on the new system and less on this system. Thank you for your understanding during this period of transition.