SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Debug Your SAPUI5 App

Debugging and logging are the nut and bolts to inspect your application. Learn how to debug and test your web apps with the Google Chrome Dev Tools.

Overview

🎓 beginner 15 min. Sapui5BeginnerHTML5CloudJavascriptSAP BTP Cloud Foundry EnvironmentFree Tier

You will learn

  • โœ”How to do add breakpoints to your JavaScript code.
  • โœ”How to log data to the browser console.
  • โœ”How to use the browser dev tools.
Nico Schoenteich N Nico Schoenteich July 19, 2024
Created by May 2, 2019
Contributors

Prerequisites

Prerequisites

Steps

Step 1 Add a message page
โ€”

Add a simple message page to let the users know you are still working on this app.

Replace the existing <Page /> control in the file myui5app/webapp/view/MainView.view.xml with the following code:

XML
<MessagePage
    showHeader="false"
    description="More content to come"
    text="Stay tuned!"
    icon="sap-icon://home" />

Tip: You can put your editor window and browser window right next to each other to benefit from the live reload feature of the web server even more.

message
message

Step 2 Write a log message to the console
+
Step 3 Add a breakpoint
+
Step 4 Stop at the breakpoint
+
Step 5 See the error log message
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 5
1. Add a message page 2. Write a log message to the console 3. Add a breakpoint 4. Stop at the breakpoint 5. See the error log message

Learn more →