cancel
Showing results for 
Search instead for 
Did you mean: 

How to Debug in NWDS

Former Member
0 Kudos

Hello Experts,

I am new to NWDS and I am facing challenges when trying to debug EAR file from NWDS 7.3 SP 12. I've created my EAR file from DTR perspective by clicking on create project from DTR repository. I've added the SAP System in SAP Management Console Perspective and I've activated debug mode on both my servers. I've also started the debug proxy.

I've placed break points in my code. But none of the breakpoints are getting triggered.

Please guide me if I'm missing something. My objective is to find out the code flow. We have portal component which I found in the EAR file under portalapp.xml. When I opened that component I saw the Class name. I was to able to locate the source java file. But I want to know which function is getting triggered after entering this java file as there is no explicit call to any method inside this java file. The details available in my portalapp.xml for this component (GetPPLinksViaJson) is

My questions are:

1) Does NWDS debugging work the same way as ABAP debugging i,e Will the breakpoint be triggered when I run my portal application from browser.

2) If not in debugging is there any other way to check the flow of code for this scenario???

3) And does portalapp.xml instantiate the class which is given as ClassName under Component-Config once this component is called (Asking this to know if constructor would be called)???

4) Is it possible to debug a WAR file??

Eagerly awaiting your response.

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos

you need to get some portal knowledge to understand which method will be called, no need to debug, i think.

Debugging Java EE Applications - Developing Java EE 5 Applications - SAP Library

1. very similar

2. print log in default trace

3 portal framework handle that, i think

4.yes

Former Member
0 Kudos

Hi Jun,

Could you please explain me which method would be called??

Regards,
Karthik

junwu
Active Contributor
Former Member
0 Kudos

Hi Jun,

I read the link which you gave and understood that when a new Portal Application Object is created the response should be placed inside doContent() method. But in my case I do not find doContent() method. Instead we have the following methods.

getBuild()

getIviewGuid()

getLaunchHomeEvent(Idocument odocument)

getLaunchHomeEvent(Idocument odocument, IMessageQueue omessagaequeue )

In these four methods I would like to know which method is getting called once this component is used.

Regards,
Karthikeyan.K