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 with SAP Business Application Studio

Learn how to run and test your web apps with the SAP Business Application Studio and Google Chrome DevTools.

Overview

🎓 beginner 20 min. Sapui5BeginnerHTML5CloudJavascriptSAP BTP Cloud Foundry EnvironmentSAP Business Application Studio

You will learn

  • โœ”How to add breakpoints to your JavaScript code
  • โœ”How to log data to the console
  • โœ”How to use the Google Chrome DevTools
Conrad Bernal C Conrad Bernal November 2, 2022
Created by June 30, 2020
Contributors

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 in the file webapp/view/View1.view.xml with

JavaScript
<mvc:View
    controllerName="sap.btp.sapui5.controller.View1"
    xmlns:mvc="sap.ui.core.mvc"
    displayBlock="true"
    xmlns="sap.m"
>
	<Shell id="shell">
		<App id="app">
			<pages>
				<MessagePage showHeader="false" description="More content to come" text="Stay tuned!" icon="sap-icon://home"/>
			</pages>
		</App>
	</Shell>
</mvc:View>
Step 2 Change the log level
+
Step 3 Write a log message to the console
+
Step 4 Add a breakpoint
+
Step 5 Run the web app
+
Step 6 Stop at the breakpoint
+
Step 7 Check the 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 7
1. Add a message page 2. Change the log level 3. Write a log message to the console 4. Add a breakpoint 5. Run the web app 6. Stop at the breakpoint 7. Check the log message

Learn more →