Watch this video to learn how to attach the debugger.
You can debug programs directly from the SAP Business Application Studio for SAP HANA. The debugger can be attached to a running Node.js module. After this is done, the debugger will be able to stop program execution at the breakpoints.
To attach the debugger:
- Open the debug panel on the left side of the SAP Business Application Studio for SAP HANA by clicking Debug Icon or using the Menu Option RunStart Debugging
- Choose the Dropdown box at the top, and choose which node module to which you want to connect 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.