28.01.2013 Views

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The session ID is the value of the xsSessionId cookie in your browser session.<br />

6. Refresh the browser. The XS JavaScript is now running in debug mode. Your client is now attached to the<br />

session, and execution is suspended at the first breakpoint.<br />

You can now perform standard Eclipse debug tasks, such as resuming execution, stepping through execution, and<br />

adding breakpoints. The following debug views are available:<br />

● Debug<br />

● Breakpoints<br />

● Variables<br />

● Expressions, which you can use to inspect global variables, such as $.request and other <strong>SAP</strong> <strong>HANA</strong> XS<br />

JavaScript API objects<br />

Related Links<br />

Debug Perspective [page 30]<br />

The Debug perspective in the <strong>SAP</strong> <strong>HANA</strong> studio is the standard Eclipse Debug perspective, enabling you to<br />

start debug sessions, create breakpoints and watch variables.<br />

Opening a Port for JavaScript Debugging [page 227]<br />

9.7.1 Opening a Port for JavaScript Debugging<br />

To enable debugging of JavaScript code, you must open a debug port on <strong>SAP</strong> <strong>HANA</strong>.<br />

The debug port is unsecured, as anyone can attach a debug client without needing credentials. A connected client<br />

can attach to and debug any HTTP session, and can possibly run their own code.<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Developer</strong> <strong>Guide</strong><br />

Writing Server-Side JavaScript Applications<br />

P U B L I C<br />

© 2012 <strong>SAP</strong> AG. All rights reserved. 227

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!