[ovirt-devel] Backend Debug

Greg Sheremeta gshereme at redhat.com
Mon Aug 14 14:45:35 UTC 2017


Sorry for the confusion. That was a log that I was pasting.

When you start engine, debug is automatic.

1. Start engine:
$ ~/ovirt-engine/share/ovirt-engine/services/ovirt-engine/ovirt-engine.py
start
Example: https://pastebin.com/zqJZ3Lvr

2. Attach Eclipse
>From Eclipse, Run > Debug Configurations, Remote Java, New (use the project
you want to debug)
Change the port to 8787, and Debug.
Window > Perspective > Open > Debug and you can see you are now attached.

screenshots: http://imgur.com/a/i0Qbe


On Mon, Aug 14, 2017 at 9:25 AM, 劉芳 <fangng9 at 163.com> wrote:

> Hi!
>      I don't understand it, as fallow:  ""ovirt-engine[8879] INFO
> _detectJBossVersion:187 Detecting JBoss version. Running:
> /usr/lib/jvm/jre/bin/java ['ovirt-engine-version',
> <snip>.
>
>    Can you give a practical example?
>
>
>
>
>
> At 2017-08-14 20:19:57, "Greg Sheremeta" <gshereme at redhat.com> wrote:
>
> When you start engine (backend) after a dev install, it's already
> listening for remote debug connections on 8787:
>
> ovirt-engine[8879] INFO _detectJBossVersion:187 Detecting JBoss version.
> Running: /usr/lib/jvm/jre/bin/java ['ovirt-engine-version',
> <snip>
>
> Listening for transport dt_socket at address: 8787
>
> So, just do a remote debug session using your favorite IDE. I use Eclipse:
>
> From Eclipse, Run > Debug Configurations, Remote Java, New (use the
> project you want to debug)
> Change the port to 8787, and Debug.
> Window > Perspective > Open > Debug and you can see you are now attached.
>
> screens: http://imgur.com/a/i0Qbe
>
> On Mon, Aug 14, 2017 at 3:58 AM, 劉芳 <fangng9 at 163.com> wrote:
>
>> Hi!
>>         Recently, I am using ovirt.
>>         The frontend module can be single step debugging according to the
>> DebugFronten document. As fallow:https://www.ovirt.org/d
>> evelop/developer-guide/debugfrontend/
>>          Are there debugging methods that can be used for single step
>> debugging of the backend?
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Devel mailing list
>> Devel at ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/devel
>>
>
>
>
> --
> Greg Sheremeta, MBA
> Sr. Software Engineer
> Red Hat, Inc.
> gshereme at redhat.com
>
>
>
>
>



-- 
Greg Sheremeta, MBA
Sr. Software Engineer
Red Hat, Inc.
gshereme at redhat.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/devel/attachments/20170814/0c89b4f1/attachment.html>


More information about the Devel mailing list