Where is my console? Debugging in the Agent Desktop

Like everything, there is a disconnect between the real world and the world your customers would like to be in. Many Oracle B2C Service customers are using the Browser User Interface and are really happy with it. Some, for various reasons – whether they be technical, functional or political – are using the Agent Desktop and will continue to use it as long as they can. And for an Oracle Intelligent Advisor consultant, especially one who is given the task of implementing functionality that requires JavaScript Extensions, this can make life a challenge. The number one grumble is a common one – how can I get on with my debugging? Where’s my console?

The Agent Desktop, lest we forget, has an embedded browser in it, much like Oracle Policy Modeling. But Oracle Policy Modeling has a console for debugging JavaScript that sends your console.log() messages to you:

Console Message in Oracle Policy Modeling

Agent Desktop does not. So I am always seeing developers and Oracle Intelligent Advisor consultants navigating through a long list of “alert()” messages instead of looking in the console that they don’t have. I am sure that it makes for a very vexatious time when working on debugging an extension. But the reality is they do not have to debug this way. It is very practical to add an external debugger window. Thankfully someone else has done a great job so you can just pick up the great work done here and use it.

So next time you debug with Agent Desktop, you can have your own debug console. Drop in the script library and you get yourself a debug console, ready to receive your console.log messages!

Oracle B2C Service Agent Console Debugging

Do something simple like the jQuery getScript to pull it into your project. Be aware that if you keep it in the resources folder of your project it will load all the time, which you may not want, so this method allows you to also condition when it is loaded through and If statement.

$.getScript('someserver/console-log-div.js', function (data, textStatus) {} 

and you are ready to console.log() like a boss.

Author: Richard Napier

After 8 years in case management and ERP software roles, Richard Napier joined Siebel Systems in 1999 and took up the role of managing the nascent Siebel University in Southern Europe. He subsequently was Director of Business Development and Education for InFact Group (now part of Business & Decisions) for 8 years. He now runs Intelligent Advisor IT Consulting OÜ. Owner of intelligent-advisor.com, he also is Co-Founder of the Siebel Hub.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Intelligent Advisor IT Consulting Serving Customers Worldwide
Hide picture