The Visual Builder Cloud Service Blog

Debugging and Troubleshooting Visual Builder Logic

Shay Shmeltzer
Director of Product Management - Oracle

In every development cycle, developers are going to run into situations where things are not working as expected - this is where the debugging step comes into play. Oracle Visual Builder Cloud Service  uses a multi-tier architecture - so it is likely that you'll end up with the need to debug code in each one of the layers. In this short demo we give you some tips on how to debug your applications.

At its core, VBCS is a web UI tool, so for most of the UI layer debugging you are going to rely on the development tools offered to your by your browser. In the video below I'm using the Chrome browser and its development tools - but similar tools exists in other browsers too. These tools allow you to see the network traffic between your client's browser and the REST sources of data. They also provide a console that shows you error messages and notifications sent from your application. One of the things we added to VBCS is a verbose mode of output that gives you full details on what's going on in your app at every step.

Another layer that you might need to debug is the business object layer that exposes the REST services. If you are developing your business objects using VBCS, then you can use the built in logging mechanism for those.

In the demonstration video below you'll see how to:

  • Monitor REST calls
  • Show notifications with variable values in the UI
  • Track activity and variable values in the console
  • Log messages in the console from custom JavaScript code - with console.log()
  • Log messages from Groovy code in your business objects - with println()
  • Track the log of your business object layer

With these tools, understanding what is happening in your application should be quite easy - and fixing errors simpler. If you are still running into problems or questions with your development process - try posting on our VBCS community forum and some of your peers might be able to help.

Join the discussion

Comments ( 2 )
  • akhil Thursday, November 22, 2018
    I wanted to to use jquery in my VBCS applicatoin, Could you please tell me how am going to use and what all steps need to follow if its possible
  • Shay Shmeltzer Monday, November 26, 2018
    It would be better to ask questions on our forum at: https://cloudcustomerconnect.oracle.com/resources/e610f4723c/summary
    You can use JQuery code in your page's js file for example. Really depends on what you want to do.
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.