[Engine-devel] debug ovirt-engine

Hello,everybody.when I develop with ovirt-engine,I have meet some obstacles because of without the debug environment. So I really want to know how to debug the frontend and backend of ovirt-engine by break points or by step . Thank you for help!

Hi, For frontend debugging please follow the instructions here: http://www.ovirt.org/DebugFrontend For backend it is simpler. If you are using the development environment [1] than just connect your IDE to localhost:8787 Tomas [1]: http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=blob;f=README.developer;... ----- Original Message -----
From: "彭春洪" <pengchunhong@gmail.com> To: engine-devel@ovirt.org Sent: Wednesday, March 26, 2014 9:13:05 AM Subject: [Engine-devel] debug ovirt-engine
Hello,everybody.when I develop with ovirt-engine,I have meet some obstacles because of without the debug environment. So I really want to know how to debug the frontend and backend of ovirt-engine by break points or by step . Thank you for help!
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

--_000_B63C858E777679458338A30A991BB524015EF127G1W3780americas_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 SGksDQoNCkRvIHlvdSBnbyB0aHJvdWdoIHRoZSB3aWtpIHBhZ2UgT1ZpcnQgRW5naW5lIERldmVs b3BtZW50IEVudmlyb25tZW50DQpodHRwOi8vd3d3Lm92aXJ0Lm9yZy9PVmlydF9FbmdpbmVfRGV2 ZWxvcG1lbnRfRW52aXJvbm1lbnQNCg0KeW91IGNhbiBkZWJ1ZyB3aXRoDQpEZWJ1ZyBwb3J0IGlz IGF2YWlsYWJsZSB2aWEgcG9ydCA4Nzg3LCB0byBiZSB1c2VkIGJ5IEVjbGlwc2Ugb3IgYW55IG90 aGVyIGRlYnVnZ2VyLg0KDQpCZXN0IFJlZ2FyZHMsDQpKYXNvbiBMaWFvDQoNCkZyb206IGVuZ2lu ZS1kZXZlbC1ib3VuY2VzQG92aXJ0Lm9yZyBbbWFpbHRvOmVuZ2luZS1kZXZlbC1ib3VuY2VzQG92 aXJ0Lm9yZ10gT24gQmVoYWxmIE9mIMXttLq66Q0KU2VudDogMjAxNMTqM9TCMjbI1SAxNjoxMw0K VG86IGVuZ2luZS1kZXZlbEBvdmlydC5vcmcNClN1YmplY3Q6IFtFbmdpbmUtZGV2ZWxdIGRlYnVn IG92aXJ0LWVuZ2luZQ0KDQpIZWxsbyxldmVyeWJvZHkud2hlbiBJIGRldmVsb3Agd2l0aCBvdmly dC1lbmdpbmUsSSBoYXZlIG1lZXQgc29tZSBvYnN0YWNsZXMgYmVjYXVzZSBvZiB3aXRob3V0IHRo ZSBkZWJ1ZyBlbnZpcm9ubWVudC4gU28gSSByZWFsbHkgd2FudCB0byBrbm93IGhvdyB0byBkZWJ1 ZyB0aGUgZnJvbnRlbmQgYW5kIGJhY2tlbmQgb2Ygb3ZpcnQtZW5naW5lIGJ5IGJyZWFrIHBvaW50 cyBvciBieSBzdGVwIC4gVGhhbmsgeW91IGZvciBoZWxwIQ0K --_000_B63C858E777679458338A30A991BB524015EF127G1W3780americas_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dgb2312"> <meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:"HP Simplified"; panose-1:2 11 6 4 2 2 4 2 2 4;} @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face {font-family:"YaHei Consolas Hybrid"; panose-1:2 11 5 9 2 2 4 2 2 4;} @font-face {font-family:"MS PGothic"; panose-1:2 11 6 0 7 2 5 8 2 4;} @font-face {font-family:"\@YaHei Consolas Hybrid"; panose-1:2 11 5 9 2 2 4 2 2 4;} @font-face {font-family:"\@MS PGothic"; panose-1:2 11 6 0 7 2 5 8 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"MS PGothic","sans-serif"; mso-fareast-language:JA;} a:link, span.MsoHyperlink {mso-style-priority:99; color:#0563C1; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:#954F72; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-reply; font-family:"HP Simplified","sans-serif"; color:#7030A0;} .MsoChpDefault {mso-style-type:export-only;} @page WordSection1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3D"ZH-CN" link=3D"#0563C1" vlink=3D"#954F72"> <div class=3D"WordSection1"> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.5pt;font-= family:"HP Simplified","sans-serif";color:#7030A0;mso-f= areast-language:ZH-CN">Hi,<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.5pt;font-= family:"HP Simplified","sans-serif";color:#7030A0;mso-f= areast-language:ZH-CN"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.5pt;font-= family:"HP Simplified","sans-serif";color:#7030A0;mso-f= areast-language:ZH-CN">Do you go through the wiki page OVirt Engine Develop= ment Environment<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.5pt;font-= family:"HP Simplified","sans-serif";color:#7030A0;mso-f= areast-language:ZH-CN"><a href=3D"http://www.ovirt.org/OVirt_Engine_Develop= ment_Environment">http://www.ovirt.org/OVirt_Engine_Development_Environment= </a><o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.5pt;font-= family:"HP Simplified","sans-serif";color:#7030A0;mso-f= areast-language:ZH-CN"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.5pt;font-= family:"HP Simplified","sans-serif";color:#7030A0;mso-f= areast-language:ZH-CN">you can debug with<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.5pt;font-= family:"HP Simplified","sans-serif";color:#7030A0;mso-f= areast-language:ZH-CN">Debug port is available via port 8787, to be used by= Eclipse or any other debugger.<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.5pt;font-= family:"HP Simplified","sans-serif";color:#7030A0;mso-f= areast-language:ZH-CN"><o:p> </o:p></span></p> <p class=3D"MsoNormal" style=3D"text-align:justify;text-justify:inter-ideog= raph"><b><span lang=3D"EN-US" style=3D"font-size:9.0pt;font-family:"HP= Simplified","sans-serif";color:black;mso-fareast-language:Z= H-CN">Best Regards,<br> </span></b><span lang=3D"EN-US" style=3D"font-size:9.0pt;font-family:"= HP Simplified","sans-serif";color:#717172;mso-fareast-langua= ge:ZH-CN">Jason Liao</span><span lang=3D"EN-US" style=3D"font-size:10.5pt;f= ont-family:"Calibri","sans-serif";color:#7030A0;mso-far= east-language:ZH-CN"><o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.5pt;font-= family:"HP Simplified","sans-serif";color:#7030A0;mso-f= areast-language:ZH-CN"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><b><span lang=3D"EN-US" style=3D"font-size:11.0pt;fo= nt-family:"Calibri","sans-serif"">From:</span></b><span= lang=3D"EN-US" style=3D"font-size:11.0pt;font-family:"Calibri",&= quot;sans-serif""> engine-devel-bounces@ovirt.org [mailto:engine-devel= -bounces@ovirt.org] <b>On Behalf Of </b></span><span lang=3D"JA" style=3D"font-size:11.0pt">=C5= =ED=B4=BA=BA=E9</span><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-f= amily:"Calibri","sans-serif""><br> <b>Sent:</b> 2014</span><span lang=3D"JA" style=3D"font-size:11.0pt">=C4=EA= </span><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-family:"Cal= ibri","sans-serif"">3</span><span lang=3D"JA" style=3D"font-= size:11.0pt">=D4=C2</span><span lang=3D"EN-US" style=3D"font-size:11.0pt;fo= nt-family:"Calibri","sans-serif"">26</span><span lang= =3D"JA" style=3D"font-size:11.0pt">=C8=D5</span><span lang=3D"EN-US" style= =3D"font-size:11.0pt;font-family:"Calibri","sans-serif"= "> 16:13<br> <b>To:</b> engine-devel@ovirt.org<br> <b>Subject:</b> [Engine-devel] debug ovirt-engine<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p> <div> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.5pt;font-= family:"Arial","sans-serif"">Hello,everybody.when I dev= elop with ovirt-engine,I have meet some obstacles because of without the de= bug environment. So I really want to know how to debug the frontend and backend of ovirt-engine by break points or by step . Thank yo= u for help! </span><span lang=3D"EN-US"><o:p></o:p></span></p> </div> </div> </body> </html> --_000_B63C858E777679458338A30A991BB524015EF127G1W3780americas_--

btw, at least with eclipse you can debug both client and server together (two debug instances, port 8787 and 8000) note that debugging the client takes time!! don't be intimidated 8-) Thanks, Gilad. ----- Original Message -----
From: "Chuan Liao (Jason Liao, HPservers-Core-OE-PSC)" <chuan.liao@hp.com> To: "彭春洪" <pengchunhong@gmail.com>, engine-devel@ovirt.org Sent: Wednesday, March 26, 2014 10:43:13 AM Subject: Re: [Engine-devel] debug ovirt-engine
Hi,
Do you go through the wiki page OVirt Engine Development Environment
http://www.ovirt.org/OVirt_Engine_Development_Environment
you can debug with
Debug port is available via port 8787, to be used by Eclipse or any other debugger.
Best Regards, Jason Liao
From: engine-devel-bounces@ovirt.org [mailto:engine-devel-bounces@ovirt.org] On Behalf Of 彭春洪 Sent: 2014 年 3 月 26 日 16:13 To: engine-devel@ovirt.org Subject: [Engine-devel] debug ovirt-engine
Hello,everybody.when I develop with ovirt-engine,I have meet some obstacles because of without the debug environment. So I really want to know how to debug the frontend and backend of ovirt-engine by break points or by step . Thank you for help!
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

----- Original Message -----
From: "Gilad Chaplik" <gchaplik@redhat.com> To: "彭春洪" <pengchunhong@gmail.com> Cc: engine-devel@ovirt.org Sent: Wednesday, March 26, 2014 11:45:25 AM Subject: Re: [Engine-devel] debug ovirt-engine
btw, at least with eclipse you can debug both client and server together (two debug instances, port 8787 and 8000) note that debugging the client takes time!! don't be intimidated 8-)
Right, GWT debugging might be slower than expected, here are some tips: - avoid compiling both WebAdmin & UserPortal when you debug only one of them - specify target browser(s) via -Dgwt.userAgent=... (avoid compiling for all browsers) - GWT Developer Plugin doesn't work with recent Firefox, use Chrome instead In future, we'll upgrade GWT SDK version which should bring some improvements to the compile/debug process.
Thanks, Gilad.
----- Original Message -----
From: "Chuan Liao (Jason Liao, HPservers-Core-OE-PSC)" <chuan.liao@hp.com> To: "彭春洪" <pengchunhong@gmail.com>, engine-devel@ovirt.org Sent: Wednesday, March 26, 2014 10:43:13 AM Subject: Re: [Engine-devel] debug ovirt-engine
Hi,
Do you go through the wiki page OVirt Engine Development Environment
http://www.ovirt.org/OVirt_Engine_Development_Environment
you can debug with
Debug port is available via port 8787, to be used by Eclipse or any other debugger.
Best Regards, Jason Liao
From: engine-devel-bounces@ovirt.org [mailto:engine-devel-bounces@ovirt.org] On Behalf Of 彭春洪 Sent: 2014 年 3 月 26 日 16:13 To: engine-devel@ovirt.org Subject: [Engine-devel] debug ovirt-engine
Hello,everybody.when I develop with ovirt-engine,I have meet some obstacles because of without the debug environment. So I really want to know how to debug the frontend and backend of ovirt-engine by break points or by step . Thank you for help!
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
participants (5)
-
Gilad Chaplik
-
Liao, Chuan (Jason Liao, HPservers-Core-OE-PSC)
-
Tomas Jelinek
-
Vojtech Szocs
-
彭春洪