Debugging the Node.js Code

Objectives
After completing this lesson, you will be able to:

After completing this lesson, you will be able to:

  • Debug Node.js code using the SAP Business Application Studio debugger

Debugging Node.js code

  1. Open the debug panel on the left side of the SAP Business Application Studio by clicking theDebug icon or using the Menu Option RunStart Debugging
  2. Choose the Dropdown box at the top, and choose which node module to which you want to connect the debugger.

Watch this video to learn how to attach the debugger.

After you have successfully attached the debugger to the Node.js module, you can set breakpoints by selecting the line numbers to the left of the code.

If you execute your application using the applications link in the Run console, the debugger stops when it reaches the breakpoints that you set before.

Use the buttons on top of the debug panel to resume, step over, step in, step out, or deactivate all breakpoints. You can also detach the debugger from your Node.js module.

Debugging Node.js Code

Save progress to your learning plan by logging in or creating an account

Login or Register