red1.org Forum Index red1.org
Nihili est - in vita priore ego imperator romanus fui
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Debuggin Teething Pains

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    red1.org Forum Index -> Growing Pains
View previous topic :: View next topic  
Author Message
jonjon



Joined: 17 Aug 2005
Posts: 2

PostPosted: Wed Aug 17, 2005 2:07 am    Post subject: Debuggin Teething Pains Reply with quote

My gums are getting sore but thanks to the Red! Callout.pdf and Remote_debug.pdf at least they are not bleeding. These are excellent docs but being a novice I must be missing something. When doing java app debugging I can get as far as the outline below but am not
comfortable with it yet
compiere -> Amenu -> AmenuStartItem -> Awindow -> Apanel
thats as far as I could get .

Remote debugging I have not been as lucky... first of all all my breakpoints seem to be in the same workspace and are recognized but ignored by the remote debug that does connect to the server on port 8787. On page 12 - 13 of callout.pdf the picture shows compiere as a java application and "Account Posting and Web Interface runs on the JBoss application service and you can only see their debug prompts off console" On the page 5 of remote_debug.pdf it states "Now execute your usual Debug which is the Compiere proper....

However I have many break points and have just barely made it to the part where the menu system is up and you can pick a item off the menu like order entry and which I haven't been able to debug yet ( I suppose that is where the remote debugging comes in )

Sometimes I can get into the app to the order entry part and most the time I can't, it seems to be a series of resumes and brakepoints and knowing just the right line the step into instead of step over to make it to the point where you can see just what menu_id the order entry screen or and other menu item is being called.

What I gather is you start a remote debug session and then start another your "usual" java application as well and if you can get deep enough like to an order entry screen then the remote debug will pick up the debugging from there . Its just an educated guess since I have not been able to debug that deep yet. Considering I have not done any java programming in a couple of years when server side debugging was non existent this when
its works will be as amazing as well Compiere is as a Open Source app.


Thanks for any help

Jon Rolling Eyes
Back to top
View user's profile Send private message
red1
Site Admin


Joined: 06 Jul 2004
Posts: 1756
Location: Kuala Lumpur, Malaysia

PostPosted: Wed Aug 17, 2005 7:39 am    Post subject: Reply with quote

Hi Jon,
U will soon be there. Trust me. What u have done is just the opening steps and its like a archaelogist who just arrived at the Cairo airport and began digging for Pharoah's tombs.
U got to travel more farther without much breaks, and just study the prompts when doing general work. A real bug can help u dive in.
This is adventure, and i dont have all the answers; but at least i been there and returned to give u some signposts. Wink

Thanks for joining!
red1

p/s this thread will soon move to Tutantahtemum's tomb i.e. Strictly Technical.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jonjon



Joined: 17 Aug 2005
Posts: 2

PostPosted: Tue Aug 23, 2005 1:15 am    Post subject: Thanks Red1 Reply with quote

Thanks Red1

I set up another workspace which was clean of any previous breakpoints and the it started to work. First I started the jboss server with the JPDA options uncommented in the run.conf file and then started a remote session from eclipse. Once that was successful I started another session from the regular java app debuging so they both were running at the same time. Then I set a breakpoint in the ProcessCTL.java and when I entered a sales order the debugging session brought me right to the breakpoint just like you said it would. Thank you for all input you have given the Compiere community for without your documents I never would have figured this out.



Jon Laughing
Back to top
View user's profile Send private message
red1
Site Admin


Joined: 06 Jul 2004
Posts: 1756
Location: Kuala Lumpur, Malaysia

PostPosted: Tue Aug 23, 2005 6:57 am    Post subject: Reply with quote

Hi JonJon,

Your success is my pleasure. Thank you for the important experience that will encourage others to go further than never before thought possible.

Now, we can finally seal this tomb Laughing
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    red1.org Forum Index -> Growing Pains All times are GMT + 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group