Debugging in OFBiz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Debugging in OFBiz

Jacques Le Roux
Administrator
I put a note in http://docs.ofbiz.org/display/OFBIZ/Running+and+Debugging+OFBiz+in+Eclipse :

The official recommended way for debugging ofbiz is to use remote debugging. The second method : in Eclipse is really helpful when it comes to debug the framework java code. When someone has screwed up the framework java code (it happens rarely but Adam is able to do it ;o) and you can't load OFBiz. Then you have no other way than to debug OFBiz using inside debugging...

I'm not able to debug current trunk version on Windows right now, but if no one beats me on it I will have a look in a couple of hours...

Jacques
Reply | Threaded
Open this post in threaded view
|

Re: Debugging in OFBiz

BJ Freeman
yup I freeze code when adam commits
I remember last time.
:)

Jacques Le Roux sent the following on 8/4/2008 8:46 PM:
> I put a note in http://docs.ofbiz.org/display/OFBIZ/Running+and+Debugging+OFBiz+in+Eclipse :
>
> The official recommended way for debugging ofbiz is to use remote debugging. The second method : in Eclipse is really helpful when it comes to debug the framework java code. When someone has screwed up the framework java code (it happens rarely but Adam is able to do it ;o) and you can't load OFBiz. Then you have no other way than to debug OFBiz using inside debugging...
>
> I'm not able to debug current trunk version on Windows right now, but if no one beats me on it I will have a look in a couple of hours...
>
> Jacques

Reply | Threaded
Open this post in threaded view
|

Re: Debugging in OFBiz

Ray-91
In reply to this post by Jacques Le Roux
Jacques,

You can suspend the JVM through the command line options at start up.
Effectively the JVM boots, stops and waits for a debugger to connect and
then it continues so you can still use remote debugging. Just put
suspend=y in the start options alongside the socket and ports settings.

Ray


Jacques Le Roux wrote:
> I put a note in http://docs.ofbiz.org/display/OFBIZ/Running+and+Debugging+OFBiz+in+Eclipse :
>
> The official recommended way for debugging ofbiz is to use remote debugging. The second method : in Eclipse is really helpful when it comes to debug the framework java code. When someone has screwed up the framework java code (it happens rarely but Adam is able to do it ;o) and you can't load OFBiz. Then you have no other way than to debug OFBiz using inside debugging...
>
> I'm not able to debug current trunk version on Windows right now, but if no one beats me on it I will have a look in a couple of hours...
>
> Jacques
Reply | Threaded
Open this post in threaded view
|

Re: Debugging in OFBiz

Jacques Le Roux
Administrator
Hi Ray,

Thanks for the tip. Until now in such cases (when wanting more to trace, for instance in classloader, etc.) I used the "stop in
main" option of Eclipse Debug Configuration, but it's not available when remote debugging. I will put them both in Wiki !

Jacques

From: "Ray" <[hidden email]>

> Jacques,
>
> You can suspend the JVM through the command line options at start up.
> Effectively the JVM boots, stops and waits for a debugger to connect and
> then it continues so you can still use remote debugging. Just put
> suspend=y in the start options alongside the socket and ports settings.
>
> Ray
>
>
> Jacques Le Roux wrote:
>> I put a note in http://docs.ofbiz.org/display/OFBIZ/Running+and+Debugging+OFBiz+in+Eclipse :
>>
>> The official recommended way for debugging ofbiz is to use remote debugging. The second method : in Eclipse is really helpful
>> when it comes to debug the framework java code. When someone has screwed up the framework java code (it happens rarely but Adam
>> is able to do it ;o) and you can't load OFBiz. Then you have no other way than to debug OFBiz using inside debugging...
>>
>> I'm not able to debug current trunk version on Windows right now, but if no one beats me on it I will have a look in a couple of
>> hours...
>>
>> Jacques
>

Reply | Threaded
Open this post in threaded view
|

Re: Debugging in OFBiz

Jacques Le Roux
Administrator
From: "Jacques Le Roux" <[hidden email]>
> Hi Ray,
>
> Thanks for the tip. Until now in such cases (when wanting more to trace, for instance in classloader, etc.) I used the "stop in
> main" option of Eclipse Debug Configuration, but it's not available when remote debugging. I will put them both in Wiki !

Done

Jacques

> Jacques
>
> From: "Ray" <[hidden email]>
>> Jacques,
>>
>> You can suspend the JVM through the command line options at start up.
>> Effectively the JVM boots, stops and waits for a debugger to connect and
>> then it continues so you can still use remote debugging. Just put
>> suspend=y in the start options alongside the socket and ports settings.
>>
>> Ray
>>
>>
>> Jacques Le Roux wrote:
>>> I put a note in http://docs.ofbiz.org/display/OFBIZ/Running+and+Debugging+OFBiz+in+Eclipse :
>>>
>>> The official recommended way for debugging ofbiz is to use remote debugging. The second method : in Eclipse is really helpful
>>> when it comes to debug the framework java code. When someone has screwed up the framework java code (it happens rarely but Adam
>>> is able to do it ;o) and you can't load OFBiz. Then you have no other way than to debug OFBiz using inside debugging...
>>>
>>> I'm not able to debug current trunk version on Windows right now, but if no one beats me on it I will have a look in a couple of
>>> hours...
>>>
>>> Jacques
>>
>