on 08-11-2005 8:59 AM
Hi,
I am trying to debug a portal component. When I start a debug session I can see the connection being set up. All the threads are running, but my portal component is NOT started in a browser session.
The only thing I see is the source code of the "Object" class.
Does anyone experienced the same problems?
Has anyone else experience with debugging portal components?
Thanks,
Ryan Douglas
Ryan
How are things, long time no speak.
I debug my portal components all of the time. As long as you have configured everything up to be able to debug, which it sounds like you have, then you need to specifically start your component/application manually. Make sure that you have a breakpoint in your code where you would like it to start the debugger. Once the component starts and this breakpoint has been reached you will then see the source code in NWDS ready for debugging
I hope this helps
Darrell
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Darrell,
How are you doing?
This is what happens:
1) I created a very basic AbstractPortalComponent (hello word),
2) I set a break point.
3) I select the debug perspective, select "run==>debug", select the right project and press "debug"
4)I see that a connection is established, the netweaver developer studio navigates automatically back to the "EP perspective"
5) I switch back to the "debug" perspective
6) manually open a new browser session and run the portal component directly (/irj/servlet/prt/portal/prtroot/debug.test).
7) The component runs without being stopped.
So do you have any suggestions?
Regards,
Ryan
Strange. The perspective shouldn't switch back to the EP perspective but should display the active threads in a box on the top left, the code just below that, the list of variables in the top right. Also, the breakpoint needs to be on a specific line of code and cannot be on a blank line as blank lines don't get executed. Also, make sure that the line that is actually executed.
Try that and let me know
D
I have had a look at Ryans code and it looks like the problem lies with the portalapp.xml file that was generated from NWDS. When generating a JspDynPage it creates the entry ComponentType with a value of JspNative, which is incorrect for a JspDynPage
I am waiting for Ryan to confirm whether this is the problem or not
D
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.