[Engine-devel] if there is a updated debug environment how to?

------=_Part_185146_1531092936.1370424870201 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: 7bit hi, engine guys: i want to make a engine debug environment for a looong time, due to all kinds of reasons i have not made it. now i still have the need for a debug environment. (it seems like that i am keeped away from you all) if there is a updated doc for building engine debug environment? thanks so much. ------=_Part_185146_1531092936.1370424870201 Content-Type: text/html; charset=GBK Content-Transfer-Encoding: 7bit <div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div>hi, engine guys:</div><div>i want to make a engine debug environment for a looong time, <font size="2">due to all kinds of reasons i have not made it.</font></div><div><font size="2">now i still have the need for a debug environment. (it seems like that i am keeped away from you all)</font></div><div><font size="2">if there is a updated doc for building engine debug environment?</font></div><div><font size="2"></font> </div><div><font size="2">thanks so much.</font></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span> ------=_Part_185146_1531092936.1370424870201--

----- Original Message -----
From: "bigclouds" <bigclouds@163.com> To: "engine-devel" <engine-devel@ovirt.org> Sent: Wednesday, June 5, 2013 12:34:30 PM Subject: [Engine-devel] if there is a updated debug environment how to?
hi, engine guys: i want to make a engine debug environment for a looong time, due to all kinds of reasons i have not made it. now i still have the need for a debug environment. (it seems like that i am keeped away from you all) if there is a updated doc for building engine debug environment? thanks so much.
Please follow Allon's B L doc on how to create a development environment http://www.ovirt.org/OVirt_Engine_Development_Environment
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

------=_Part_18972_194529262.1370566155106 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 aGk6CnRoZXJlIGlzIGVycm9yIHdoZW4gZW5naW5lLXNldHVwLTIuIGZpbmFsbHkgb25seSA4NzAy IGFuZCA4NzAzIHBvcnQgaXMgaW4gbGlzdGVuIHN0YXRlLgppIGNhbiBub3QgdmlzaXQgODA4MCB2 aWEgYnJvd3Nlci4KZW5naW5lLXNldHVwLTLvu78KWyBJTkZPICBdI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GZvciBhIGRlYnVnIGVudmlyb25tZW50LiAoaXQgc2Vl bXMgbGlrZSB0aGF0IGkgYW0KPj4ga2VlcGVkIGF3YXkgZnJvbSB5b3UgYWxsKQo+PiBpZiB0aGVy ZSBpcyBhIHVwZGF0ZWQgZG9jIGZvciBidWlsZGluZyBlbmdpbmUgZGVidWcgZW52aXJvbm1lbnQ/ Cj4+IHRoYW5rcyBzbyBtdWNoLgo+PiAKPgo+UGxlYXNlIGZvbGxvdyBBbGxvbidzIEIgTCBkb2Mg b24gaG93IHRvIGNyZWF0ZSBhIGRldmVsb3BtZW50IGVudmlyb25tZW50IAo+Cj5odHRwOi8vd3d3 Lm92aXJ0Lm9yZy9PVmlydF9FbmdpbmVfRGV2ZWxvcG1lbnRfRW52aXJvbm1lbnQKPgo+Cj4+IAo+ PiAKPj4gX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KPj4g RW5naW5lLWRldmVsIG1haWxpbmcgbGlzdAo+PiBFbmdpbmUtZGV2ZWxAb3ZpcnQub3JnCj4+IGh0 dHA6Ly9saXN0cy5vdmlydC5vcmcvbWFpbG1hbi9saXN0aW5mby9lbmdpbmUtZGV2ZWwKPj4gCg== ------=_Part_18972_194529262.1370566155106 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: base64 PGRpdiBzdHlsZT0ibGluZS1oZWlnaHQ6MS43O2NvbG9yOiMwMDAwMDA7Zm9udC1zaXplOjE0cHg7 Zm9udC1mYW1pbHk6YXJpYWwiPjxkaXY+PGRpdj48Zm9udCBzdHlsZT0iYmFja2dyb3VuZC1jb2xv cjogcmdiKDI1NSwgMjU1LCAyNTUpOyI+PC9mb250PiA8L2Rpdj48c3BhbiBzdHlsZT0iY29sb3I6 IHJnYigwLCAwLCAwKTsiPjxkaXY+PGZvbnQgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6IHJnYigy NTUsIDI1NSwgMjU1KTsiPmhpOjwvZm9udD48L2Rpdj48ZGl2Pj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O2RldmVsb3BtZW50Jm5ic3A7ZW52aXJvbm1lbnQm bmJzcDsKJmd0OwomZ3Q7aHR0cDovL3d3dy5vdmlydC5vcmcvT1ZpcnRfRW5naW5lX0RldmVsb3Bt ZW50X0Vudmlyb25tZW50CiZndDsKJmd0OwomZ3Q7Jmd0OyZuYnNwOwomZ3Q7Jmd0OyZuYnNwOwom Z3Q7Jmd0OyZuYnNwO19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fCiZndDsmZ3Q7Jm5ic3A7RW5naW5lLWRldmVsJm5ic3A7bWFpbGluZyZuYnNwO2xpc3QKJmd0 OyZndDsmbmJzcDtFbmdpbmUtZGV2ZWxAb3ZpcnQub3JnCiZndDsmZ3Q7Jm5ic3A7aHR0cDovL2xp c3RzLm92aXJ0Lm9yZy9tYWlsbWFuL2xpc3RpbmZvL2VuZ2luZS1kZXZlbAomZ3Q7Jmd0OyZuYnNw Owo8L3ByZT48L2Rpdj48YnI+PGJyPjxzcGFuIHRpdGxlPSJuZXRlYXNlZm9vdGVyIj48c3BhbiBp ZD0ibmV0ZWFzZV9tYWlsX2Zvb3RlciI+PC9zcGFuPjwvc3Bhbj4= ------=_Part_18972_194529262.1370566155106--

----- Original Message -----
From: "bigclouds" <bigclouds@163.com> To: "Eli Mesika" <emesika@redhat.com> Cc: "engine-devel" <engine-devel@ovirt.org> Sent: Friday, June 7, 2013 3:49:15 AM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
hi: there is error when engine-setup-2. finally only 8702 and 8703 port is in listen state. i can not visit 8080 via browser.
Well, if setup fails... probably application won't work.
engine-setup-2 [ INFO ] Creating CA [ INFO ] Creating database schema [ ERROR ] Failed to execute stage 'Misc configuration': Command '/home/best/ovirt-engine/share/ovirt-engine/dbscripts/create_schema.sh' failed to execute [ INFO ] Stage: Clean up Log file is located at /tmp/ovirt-engine-setup-20130606172206.log
What database have you used? If you don't have anything important there, can you please try to initialize it so you start fresh? # systemctl stop postgresql.service # rm -fr /var/lib/pgsql # postgresql-setup initdb # vi /var/lib/pgsql/data/pg_hba.conf modify 127.0.0.1/32 and ::1/128 lines to password at last field # su - postgres -c psql -d template1 template1=# create user engine password 'engine'; template1=# create database engine owner engine; # \q
At 2013-06-06 05:17:07,"Eli Mesika" <emesika@redhat.com> wrote:
----- Original Message -----
From: "bigclouds" <bigclouds@163.com> To: "engine-devel" <engine-devel@ovirt.org> Sent: Wednesday, June 5, 2013 12:34:30 PM Subject: [Engine-devel] if there is a updated debug environment how to? hi, engine guys: i want to make a engine debug environment for a looong time, due to all kinds of reasons i have not made it. now i still have the need for a debug environment. (it seems like that i am keeped away from you all) if there is a updated doc for building engine debug environment? thanks so much.
Please follow Allon's B L doc on how to create a development environment
http://www.ovirt.org/OVirt_Engine_Development_Environment
_______________________________________________ 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

----- Original Message -----
From: "Alon Bar-Lev" <alonbl@redhat.com> To: "bigclouds" <bigclouds@163.com> Cc: "engine-devel" <engine-devel@ovirt.org> Sent: Friday, June 7, 2013 9:55:41 AM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
----- Original Message -----
From: "bigclouds" <bigclouds@163.com> To: "Eli Mesika" <emesika@redhat.com> Cc: "engine-devel" <engine-devel@ovirt.org> Sent: Friday, June 7, 2013 3:49:15 AM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
hi: there is error when engine-setup-2. finally only 8702 and 8703 port is in listen state. i can not visit 8080 via browser.
Well, if setup fails... probably application won't work.
engine-setup-2 [ INFO ] Creating CA [ INFO ] Creating database schema [ ERROR ] Failed to execute stage 'Misc configuration': Command '/home/best/ovirt-engine/share/ovirt-engine/dbscripts/create_schema.sh' failed to execute [ INFO ] Stage: Clean up Log file is located at /tmp/ovirt-engine-setup-20130606172206.log
What database have you used? If you don't have anything important there, can you please try to initialize it so you start fresh?
# systemctl stop postgresql.service # rm -fr /var/lib/pgsql # postgresql-setup initdb # vi /var/lib/pgsql/data/pg_hba.conf modify 127.0.0.1/32 and ::1/128 lines to password at last field # systemctl start postgresql.service # su - postgres -c psql -d template1 template1=# create user engine password 'engine'; template1=# create database engine owner engine; # \q
At 2013-06-06 05:17:07,"Eli Mesika" <emesika@redhat.com> wrote:
----- Original Message -----
From: "bigclouds" <bigclouds@163.com> To: "engine-devel" <engine-devel@ovirt.org> Sent: Wednesday, June 5, 2013 12:34:30 PM Subject: [Engine-devel] if there is a updated debug environment how to? hi, engine guys: i want to make a engine debug environment for a looong time, due to all kinds of reasons i have not made it. now i still have the need for a debug environment. (it seems like that i am keeped away from you all) if there is a updated doc for building engine debug environment? thanks so much.
Please follow Allon's B L doc on how to create a development environment
http://www.ovirt.org/OVirt_Engine_Development_Environment
_______________________________________________ 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
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

------=_Part_133632_1530618413.1370590165039 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 c28gbWFueSB0aGlua3MsaSAgZmluYWxseSBtYWtlIGl0LgogCmlmIGkgY2FuIGRlYnVnIGd3dCAg aW4gdGhpcyBlbnZpcm9ubWVudD8gIGFuZCBob3c/CiAKIAppZiB0aGlzIGxpbmsgaXMgc3RpbGwg aW4gdXNlLCBodHRwOi8vd3d3Lm92aXJ0Lm9yZy9EZWJ1Z0Zyb250ZW5kCiAKdGhhbmtzLgoKCgoK CkF0IDIwMTMtMDYtMDcgMTQ6NTU6NDEsIkFsb24gQmFyLUxldiIgPGFsb25ibEByZWRoYXQuY29t PiB3cm90ZToKPgo+Cj4tLS0tLSBPcmlnaW5hbCBNZXNzYWdlIC0tLS0tC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dGluZm8vZW5naW5lLWRldmVsCj4+ID4+ IAo+PiAKPj4gCj4+IAo+PiBfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fXwo+PiBFbmdpbmUtZGV2ZWwgbWFpbGluZyBsaXN0Cj4+IEVuZ2luZS1kZXZlbEBvdmly dC5vcmcKPj4gaHR0cDovL2xpc3RzLm92aXJ0Lm9yZy9tYWlsbWFuL2xpc3RpbmZvL2VuZ2luZS1k ZXZlbAo+PiAK ------=_Part_133632_1530618413.1370590165039 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: base64 PGRpdiBzdHlsZT0ibGluZS1oZWlnaHQ6MS43O2NvbG9yOiMwMDAwMDA7Zm9udC1zaXplOjE0cHg7 Zm9udC1mYW1pbHk6YXJpYWwiPjxkaXY+c28gbWFueSB0aGlua3MsaSZuYnNwOyBmaW5hbGx5IG1h a2UgaXQuPC9kaXY+PGRpdj4mbmJzcDs8L2Rpdj48ZGl2PmlmIGkgY2FuIGRlYnVnIGd3dCZuYnNw OyBpbiB0aGlzIGVudmlyb25tZW50PyZuYnNwOyBhbmQgaG93PzwvZGl2PjxkaXY+Jm5ic3A7PC9k aXY+PGRpdj4mbmJzcDs8L2Rpdj48ZGl2PmlmIHRoaXMgbGluayBpcyBzdGlsbCBpbiB1c2UsIDxh IGhyZWY9Imh0dHA6Ly93d3cub3ZpcnQub3JnL0RlYnVnRnJvbnRlbmQiPmh0dHA6Ly93d3cub3Zp cnQub3JnL0RlYnVnRnJvbnRlbmQ8L2E+PC9kaXY+PGRpdj4mbmJzcDs8L2Rpdj48ZGl2PnRoYW5r cy48YnI+PGJyPjxicj48YnI+PC9kaXY+PGRpdj48L2Rpdj48ZGl2IGlkPSJkaXZOZXRlYXNlTWFp bENhcmQiPjwvZGl2PjxkaXY+PC9kaXY+PHByZT48YnI+QXQmbmJzcDsyMDEzLTA2LTA3Jm5ic3A7 MTQ6NTU6NDEsIkFsb24mbmJzcDtCYXItTGV2IiZu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2ZWwKJmd0OyZndDsmbmJzcDsmZ3Q7 Jmd0OyZuYnNwOwomZ3Q7Jmd0OyZuYnNwOwomZ3Q7Jmd0OyZuYnNwOwomZ3Q7Jmd0OyZuYnNwOwom Z3Q7Jmd0OyZuYnNwO19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fCiZndDsmZ3Q7Jm5ic3A7RW5naW5lLWRldmVsJm5ic3A7bWFpbGluZyZuYnNwO2xpc3QKJmd0 OyZndDsmbmJzcDtFbmdpbmUtZGV2ZWxAb3ZpcnQub3JnCiZndDsmZ3Q7Jm5ic3A7aHR0cDovL2xp c3RzLm92aXJ0Lm9yZy9tYWlsbWFuL2xpc3RpbmZvL2VuZ2luZS1kZXZlbAomZ3Q7Jmd0OyZuYnNw Owo8L3ByZT48L2Rpdj48YnI+PGJyPjxzcGFuIHRpdGxlPSJuZXRlYXNlZm9vdGVyIj48c3BhbiBp ZD0ibmV0ZWFzZV9tYWlsX2Zvb3RlciI+PC9zcGFuPjwvc3Bhbj4= ------=_Part_133632_1530618413.1370590165039--

----- Original Message -----
From: "bigclouds" <bigclouds@163.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: "Eli Mesika" <emesika@redhat.com>, "engine-devel" <engine-devel@ovirt.org> Sent: Friday, June 7, 2013 10:29:25 AM Subject: Re:Re: [Engine-devel] if there is a updated debug environment how to?
so many thinks,i finally make it.
if i can debug gwt in this environment? and how?
if this link is still in use, http://www.ovirt.org/DebugFrontend
thanks.
This is interesting, I would like to work with someone that knows GWT to make this happen. If I read this correctly, all you need to do is: $ make install-dev PREFIX="${HOME}/ovirt-engine" EXTRA_BUILD_FLAGS_DEV="-Pgwtdev" And connect eclipse using the standard jboss debug port. But I know nothing of GWT, I will appreciate help in that... How do we connect to a running instance of jboss and debug gwt, what setting should we have? Thanks!
At 2013-06-07 14:55:41,"Alon Bar-Lev" <alonbl@redhat.com> wrote:
----- Original Message -----
From: "bigclouds" <bigclouds@163.com> To: "Eli Mesika" <emesika@redhat.com> Cc: "engine-devel" <engine-devel@ovirt.org> Sent: Friday, June 7, 2013 3:49:15 AM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
hi: there is error when engine-setup-2. finally only 8702 and 8703 port is in listen state. i can not visit 8080 via browser.
Well, if setup fails... probably application won't work.
engine-setup-2 [ INFO ] Creating CA [ INFO ] Creating database schema [ ERROR ] Failed to execute stage 'Misc configuration': Command '/home/best/ovirt-engine/share/ovirt-engine/dbscripts/create_schema.sh' failed to execute [ INFO ] Stage: Clean up Log file is located at /tmp/ovirt-engine-setup-20130606172206.log
What database have you used? If you don't have anything important there, can you please try to initialize it so you start fresh?
# systemctl stop postgresql.service # rm -fr /var/lib/pgsql # postgresql-setup initdb # vi /var/lib/pgsql/data/pg_hba.conf modify 127.0.0.1/32 and ::1/128 lines to password at last field # su - postgres -c psql -d template1 template1=# create user engine password 'engine'; template1=# create database engine owner engine; # \q
At 2013-06-06 05:17:07,"Eli Mesika" <emesika@redhat.com> wrote:
----- Original Message -----
From: "bigclouds" <bigclouds@163.com> To: "engine-devel" <engine-devel@ovirt.org> Sent: Wednesday, June 5, 2013 12:34:30 PM Subject: [Engine-devel] if there is a updated debug environment how to?
hi, engine guys: i want to make a engine debug environment for a looong time, due to all kinds of reasons i have not made it. now i still have the need for a debug environment. (it seems like that i am keeped away from you all) if there is a updated doc for building engine debug environment? thanks so much.
Please follow Allon's B L doc on how to create a development environment
http://www.ovirt.org/OVirt_Engine_Development_Environment
_______________________________________________ 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

On Friday, June 07, 2013 03:46:12 AM Alon Bar-Lev wrote:
----- Original Message -----
From: "bigclouds" <bigclouds@163.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: "Eli Mesika" <emesika@redhat.com>, "engine-devel" <engine-devel@ovirt.org> Sent: Friday, June 7, 2013 10:29:25 AM Subject: Re:Re: [Engine-devel] if there is a updated debug environment how to?
so many thinks,i finally make it.
if i can debug gwt in this environment? and how?
if this link is still in use, http://www.ovirt.org/DebugFrontend
thanks.
This is interesting, I would like to work with someone that knows GWT to make this happen.
If I read this correctly, all you need to do is:
$ make install-dev PREFIX="${HOME}/ovirt-engine" EXTRA_BUILD_FLAGS_DEV="-Pgwtdev"
And connect eclipse using the standard jboss debug port.
But I know nothing of GWT, I will appreciate help in that...
How do we connect to a running instance of jboss and debug gwt, what setting should we have?
Once you have the engine up and running as explained about, you can use http://www.ovirt.org/DebugFrontend to run GWT debugging. You can safely skip step 0 in that document (I think that needs to be updated). And start at step 1. The document explains quite well what to do, but the short version is: 1. cd into the source code directory of either webadmin or user portal. Usually: ovirt- engine/frontend/webadmin/modules/(webadmin or userportal-gwtp) 2. mvn gwt:debug -Pgwtdev,gwt-admin,gwt-user -Dgwt.noserver=true from the command line. Once it is done compiling it will tell you it is listening on port 8000. 3.In eclipse (or your favorite java IDE) make a remote java application connection to port 8000 4. Once connected this will open up a GWT debug window. 5. In your browser as ?gwt.codesvr=127.0.0.1:9997 to the url you are working with and refresh the page. 6. It will either ask you to install the plugin in your browser or load the page depending on if you have the plugin already. Alexander
Thanks!
At 2013-06-07 14:55:41,"Alon Bar-Lev" <alonbl@redhat.com> wrote:
----- Original Message -----
From: "bigclouds" <bigclouds@163.com> To: "Eli Mesika" <emesika@redhat.com> Cc: "engine-devel" <engine-devel@ovirt.org> Sent: Friday, June 7, 2013 3:49:15 AM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
hi: there is error when engine-setup-2. finally only 8702 and 8703 port is in listen state. i can not visit 8080 via browser.
Well, if setup fails... probably application won't work.
engine-setup-2 [ INFO ] Creating CA [ INFO ] Creating database schema [ ERROR ] Failed to execute stage 'Misc configuration': Command '/home/best/ovirt-engine/share/ovirt-engine/dbscripts/create_schema.sh' failed to execute [ INFO ] Stage: Clean up Log file is located at /tmp/ovirt-engine-setup-20130606172206.log
What database have you used? If you don't have anything important there, can you please try to initialize it so you start fresh?
# systemctl stop postgresql.service # rm -fr /var/lib/pgsql # postgresql-setup initdb # vi /var/lib/pgsql/data/pg_hba.conf modify 127.0.0.1/32 and ::1/128 lines to password at last field # su - postgres -c psql -d template1 template1=# create user engine password 'engine'; template1=# create database engine owner engine; # \q
At 2013-06-06 05:17:07,"Eli Mesika" <emesika@redhat.com> wrote:
----- Original Message -----
From: "bigclouds" <bigclouds@163.com> To: "engine-devel" <engine-devel@ovirt.org> Sent: Wednesday, June 5, 2013 12:34:30 PM Subject: [Engine-devel] if there is a updated debug environment how to?
hi, engine guys: i want to make a engine debug environment for a looong time, due to all
kinds
of reasons i have not made it. now i still have the need for a debug environment. (it seems like that i
am
keeped away from you all) if there is a updated doc for building engine debug environment? thanks so much.
Please follow Allon's B L doc on how to create a development environment
http://www.ovirt.org/OVirt_Engine_Development_Environment
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
_______________________________________________

----- Original Message -----
From: "Alexander Wels" <awels@redhat.com> To: engine-devel@ovirt.org Cc: "Alon Bar-Lev" <alonbl@redhat.com>, "bigclouds" <bigclouds@163.com> Sent: Friday, June 7, 2013 3:09:19 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
On Friday, June 07, 2013 03:46:12 AM Alon Bar-Lev wrote:
----- Original Message -----
From: "bigclouds" <bigclouds@163.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: "Eli Mesika" <emesika@redhat.com>, "engine-devel" <engine-devel@ovirt.org> Sent: Friday, June 7, 2013 10:29:25 AM Subject: Re:Re: [Engine-devel] if there is a updated debug environment how to?
so many thinks,i finally make it.
if i can debug gwt in this environment? and how?
if this link is still in use, http://www.ovirt.org/DebugFrontend
thanks.
This is interesting, I would like to work with someone that knows GWT to make this happen.
If I read this correctly, all you need to do is:
$ make install-dev PREFIX="${HOME}/ovirt-engine" EXTRA_BUILD_FLAGS_DEV="-Pgwtdev"
And connect eclipse using the standard jboss debug port.
But I know nothing of GWT, I will appreciate help in that...
How do we connect to a running instance of jboss and debug gwt, what setting should we have?
Hi Alex,
Once you have the engine up and running as explained about, you can use http://www.ovirt.org/DebugFrontend to run GWT debugging. You can safely skip step 0 in that document (I think that needs to be updated). And start at step 1. The document explains quite well what to do, but the short version is:
1. cd into the source code directory of either webadmin or user portal. Usually: ovirt- engine/frontend/webadmin/modules/(webadmin or userportal-gwtp) 2. mvn gwt:debug -Pgwtdev,gwt-admin,gwt-user -Dgwt.noserver=true from the command line. Once it is done compiling it will tell you it is listening on port 8000.
This will not run as jboss, right? Or you mean it will run on the jboss of the legacy (not the new environment). I would like a solution in which we can use the already running jboss instance that use for production in order to debug gwt. Is that possible? I guess some properties need to be passed, or new modules. Thanks!
3.In eclipse (or your favorite java IDE) make a remote java application connection to port 8000 4. Once connected this will open up a GWT debug window. 5. In your browser as ?gwt.codesvr=127.0.0.1:9997 to the url you are working with and refresh the page. 6. It will either ask you to install the plugin in your browser or load the page depending on if you have the plugin already.
Alexander
Thanks!
At 2013-06-07 14:55:41,"Alon Bar-Lev" <alonbl@redhat.com> wrote:
----- Original Message -----
From: "bigclouds" <bigclouds@163.com> To: "Eli Mesika" <emesika@redhat.com> Cc: "engine-devel" <engine-devel@ovirt.org> Sent: Friday, June 7, 2013 3:49:15 AM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
hi: there is error when engine-setup-2. finally only 8702 and 8703 port is in listen state. i can not visit 8080 via browser.
Well, if setup fails... probably application won't work.
engine-setup-2 [ INFO ] Creating CA [ INFO ] Creating database schema [ ERROR ] Failed to execute stage 'Misc configuration': Command '/home/best/ovirt-engine/share/ovirt-engine/dbscripts/create_schema.sh' failed to execute [ INFO ] Stage: Clean up Log file is located at /tmp/ovirt-engine-setup-20130606172206.log
What database have you used? If you don't have anything important there, can you please try to initialize it so you start fresh?
# systemctl stop postgresql.service # rm -fr /var/lib/pgsql # postgresql-setup initdb # vi /var/lib/pgsql/data/pg_hba.conf modify 127.0.0.1/32 and ::1/128 lines to password at last field # su - postgres -c psql -d template1 template1=# create user engine password 'engine'; template1=# create database engine owner engine; # \q
At 2013-06-06 05:17:07,"Eli Mesika" <emesika@redhat.com> wrote:
----- Original Message -----
> From: "bigclouds" <bigclouds@163.com> > To: "engine-devel" <engine-devel@ovirt.org> > Sent: Wednesday, June 5, 2013 12:34:30 PM > Subject: [Engine-devel] if there is a updated debug environment how > to? > > hi, engine guys: > i want to make a engine debug environment for a looong time, due to > all > > kinds > > of reasons i have not made it. > now i still have the need for a debug environment. (it seems like > that > i > > am > > keeped away from you all) > if there is a updated doc for building engine debug environment? > thanks so much.
Please follow Allon's B L doc on how to create a development environment
http://www.ovirt.org/OVirt_Engine_Development_Environment
> _______________________________________________ > Engine-devel mailing list > Engine-devel@ovirt.org > http://lists.ovirt.org/mailman/listinfo/engine-devel
_______________________________________________

On Friday, June 07, 2013 08:26:32 AM Alon Bar-Lev wrote:
----- Original Message -----
From: "Alexander Wels" <awels@redhat.com> To: engine-devel@ovirt.org Cc: "Alon Bar-Lev" <alonbl@redhat.com>, "bigclouds" <bigclouds@163.com> Sent: Friday, June 7, 2013 3:09:19 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
On Friday, June 07, 2013 03:46:12 AM Alon Bar-Lev wrote:
----- Original Message -----
From: "bigclouds" <bigclouds@163.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: "Eli Mesika" <emesika@redhat.com>, "engine-devel" <engine-devel@ovirt.org> Sent: Friday, June 7, 2013 10:29:25 AM Subject: Re:Re: [Engine-devel] if there is a updated debug environment how to?
so many thinks,i finally make it.
if i can debug gwt in this environment? and how?
if this link is still in use, http://www.ovirt.org/DebugFrontend
thanks.
This is interesting, I would like to work with someone that knows GWT to make this happen.
If I read this correctly, all you need to do is:
$ make install-dev PREFIX="${HOME}/ovirt-engine" EXTRA_BUILD_FLAGS_DEV="-Pgwtdev"
And connect eclipse using the standard jboss debug port.
But I know nothing of GWT, I will appreciate help in that...
How do we connect to a running instance of jboss and debug gwt, what setting should we have?
Hi Alex,
Once you have the engine up and running as explained about, you can use http://www.ovirt.org/DebugFrontend to run GWT debugging. You can safely skip step 0 in that document (I think that needs to be updated). And start at step 1. The document explains quite well what to do, but the short version is:
1. cd into the source code directory of either webadmin or user portal. Usually: ovirt- engine/frontend/webadmin/modules/(webadmin or userportal-gwtp) 2. mvn gwt:debug -Pgwtdev,gwt-admin,gwt-user -Dgwt.noserver=true from the command line. Once it is done compiling it will tell you it is listening on port 8000.
This will not run as jboss, right?
No it is a normal java application (The GWT debugger).
Or you mean it will run on the jboss of the legacy (not the new environment). I would like a solution in which we can use the already running jboss instance that use for production in order to debug gwt. Is that possible? I guess some properties need to be passed, or new modules.
Thanks!
The GWT debugger is completely agnostic with regards to what serves the host page. The GWT debugger is connected to the browser, not the server. The host page can be served from a local JBOSS, a remote Apache, a file, whatever. The GWT debugger doesn't care as it is talking to the browser. IMO the only thing we could do to improve this is update the make file to provide a target to start the debugger, which basically just calls maven with the appropriate parameters.
3.In eclipse (or your favorite java IDE) make a remote java application connection to port 8000 4. Once connected this will open up a GWT debug window. 5. In your browser as ?gwt.codesvr=127.0.0.1:9997 to the url you are working with and refresh the page. 6. It will either ask you to install the plugin in your browser or load the page depending on if you have the plugin already.
Alexander
Thanks!
At 2013-06-07 14:55:41,"Alon Bar-Lev" <alonbl@redhat.com> wrote:
----- Original Message -----
From: "bigclouds" <bigclouds@163.com> To: "Eli Mesika" <emesika@redhat.com> Cc: "engine-devel" <engine-devel@ovirt.org> Sent: Friday, June 7, 2013 3:49:15 AM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
hi: there is error when engine-setup-2. finally only 8702 and 8703 port is in listen state. i can not visit 8080 via browser.
Well, if setup fails... probably application won't work.
engine-setup-2 [ INFO ] Creating CA [ INFO ] Creating database schema [ ERROR ] Failed to execute stage 'Misc configuration': Command '/home/best/ovirt-engine/share/ovirt-engine/dbscripts/create_schema .sh' failed to execute [ INFO ] Stage: Clean up Log file is located at /tmp/ovirt-engine-setup-20130606172206.log
What database have you used? If you don't have anything important there, can you please try to initialize it so you start fresh?
# systemctl stop postgresql.service # rm -fr /var/lib/pgsql # postgresql-setup initdb # vi /var/lib/pgsql/data/pg_hba.conf modify 127.0.0.1/32 and ::1/128 lines to password at last field # su - postgres -c psql -d template1 template1=# create user engine password 'engine'; template1=# create database engine owner engine; # \q
At 2013-06-06 05:17:07,"Eli Mesika" <emesika@redhat.com> wrote: >----- Original Message ----- > >> From: "bigclouds" <bigclouds@163.com> >> To: "engine-devel" <engine-devel@ovirt.org> >> Sent: Wednesday, June 5, 2013 12:34:30 PM >> Subject: [Engine-devel] if there is a updated debug environment >> how >> to? >> >> hi, engine guys: >> i want to make a engine debug environment for a looong time, due >> to >> all >> >> kinds >> >> of reasons i have not made it. >> now i still have the need for a debug environment. (it seems >> like >> that >> i >> >> am >> >> keeped away from you all) >> if there is a updated doc for building engine debug environment? >> thanks so much. > >Please follow Allon's B L doc on how to create a development >environment > >http://www.ovirt.org/OVirt_Engine_Development_Environment > >> _______________________________________________ >> Engine-devel mailing list >> Engine-devel@ovirt.org >> http://lists.ovirt.org/mailman/listinfo/engine-devel
_______________________________________________

----- Original Message -----
From: "Alexander Wels" <awels@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: engine-devel@ovirt.org, "bigclouds" <bigclouds@163.com> Sent: Friday, June 7, 2013 4:14:59 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
On Friday, June 07, 2013 08:26:32 AM Alon Bar-Lev wrote:
----- Original Message -----
From: "Alexander Wels" <awels@redhat.com> To: engine-devel@ovirt.org Cc: "Alon Bar-Lev" <alonbl@redhat.com>, "bigclouds" <bigclouds@163.com> Sent: Friday, June 7, 2013 3:09:19 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
On Friday, June 07, 2013 03:46:12 AM Alon Bar-Lev wrote:
----- Original Message -----
From: "bigclouds" <bigclouds@163.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: "Eli Mesika" <emesika@redhat.com>, "engine-devel" <engine-devel@ovirt.org> Sent: Friday, June 7, 2013 10:29:25 AM Subject: Re:Re: [Engine-devel] if there is a updated debug environment how to?
so many thinks,i finally make it.
if i can debug gwt in this environment? and how?
if this link is still in use, http://www.ovirt.org/DebugFrontend
thanks.
This is interesting, I would like to work with someone that knows GWT to make this happen.
If I read this correctly, all you need to do is:
$ make install-dev PREFIX="${HOME}/ovirt-engine" EXTRA_BUILD_FLAGS_DEV="-Pgwtdev"
And connect eclipse using the standard jboss debug port.
But I know nothing of GWT, I will appreciate help in that...
How do we connect to a running instance of jboss and debug gwt, what setting should we have?
Hi Alex,
Once you have the engine up and running as explained about, you can use http://www.ovirt.org/DebugFrontend to run GWT debugging. You can safely skip step 0 in that document (I think that needs to be updated). And start at step 1. The document explains quite well what to do, but the short version is:
1. cd into the source code directory of either webadmin or user portal. Usually: ovirt- engine/frontend/webadmin/modules/(webadmin or userportal-gwtp) 2. mvn gwt:debug -Pgwtdev,gwt-admin,gwt-user -Dgwt.noserver=true from the command line. Once it is done compiling it will tell you it is listening on port 8000.
This will not run as jboss, right?
No it is a normal java application (The GWT debugger).
Or you mean it will run on the jboss of the legacy (not the new environment). I would like a solution in which we can use the already running jboss instance that use for production in order to debug gwt. Is that possible? I guess some properties need to be passed, or new modules.
Thanks!
The GWT debugger is completely agnostic with regards to what serves the host page. The GWT debugger is connected to the browser, not the server. The host page can be served from a local JBOSS, a remote Apache, a file, whatever. The GWT debugger doesn't care as it is talking to the browser.
Can you please explain this text from the wiki: gwt.noserver tells Development Mode that the application is already deployed on JBoss AS (don't use embedded Jetty instance to serve application content) Or this: Q: Client-side logs are not persisted on Engine, e.g. $JBOSS_HOME/standalone/log/engine/engine-ui.log. A: Currently, client-side logs are enabled only when debugging the application via Development Mode. What listens on port 8700? Thanks!
IMO the only thing we could do to improve this is update the make file to provide a target to start the debugger, which basically just calls maven with the appropriate parameters.
3.In eclipse (or your favorite java IDE) make a remote java application connection to port 8000 4. Once connected this will open up a GWT debug window. 5. In your browser as ?gwt.codesvr=127.0.0.1:9997 to the url you are working with and refresh the page. 6. It will either ask you to install the plugin in your browser or load the page depending on if you have the plugin already.
Alexander
Thanks!
At 2013-06-07 14:55:41,"Alon Bar-Lev" <alonbl@redhat.com> wrote:
----- Original Message -----
> From: "bigclouds" <bigclouds@163.com> > To: "Eli Mesika" <emesika@redhat.com> > Cc: "engine-devel" <engine-devel@ovirt.org> > Sent: Friday, June 7, 2013 3:49:15 AM > Subject: Re: [Engine-devel] if there is a updated debug > environment > how > to? > > hi: > there is error when engine-setup-2. finally only 8702 and 8703 > port > is > in > listen state. > i can not visit 8080 via browser.
Well, if setup fails... probably application won't work.
> engine-setup-2 > [ INFO ] Creating CA > [ INFO ] Creating database schema > [ ERROR ] Failed to execute stage 'Misc configuration': Command > '/home/best/ovirt-engine/share/ovirt-engine/dbscripts/create_schema > .sh' > failed to execute > [ INFO ] Stage: Clean up > Log file is located at /tmp/ovirt-engine-setup-20130606172206.log
What database have you used? If you don't have anything important there, can you please try to initialize it so you start fresh?
# systemctl stop postgresql.service # rm -fr /var/lib/pgsql # postgresql-setup initdb # vi /var/lib/pgsql/data/pg_hba.conf modify 127.0.0.1/32 and ::1/128 lines to password at last field # su - postgres -c psql -d template1 template1=# create user engine password 'engine'; template1=# create database engine owner engine; # \q
> At 2013-06-06 05:17:07,"Eli Mesika" <emesika@redhat.com> wrote: > >----- Original Message ----- > > > >> From: "bigclouds" <bigclouds@163.com> > >> To: "engine-devel" <engine-devel@ovirt.org> > >> Sent: Wednesday, June 5, 2013 12:34:30 PM > >> Subject: [Engine-devel] if there is a updated debug environment > >> how > >> to? > >> > >> hi, engine guys: > >> i want to make a engine debug environment for a looong time, > >> due > >> to > >> all > >> > >> kinds > >> > >> of reasons i have not made it. > >> now i still have the need for a debug environment. (it seems > >> like > >> that > >> i > >> > >> am > >> > >> keeped away from you all) > >> if there is a updated doc for building engine debug > >> environment? > >> thanks so much. > > > >Please follow Allon's B L doc on how to create a development > >environment > > > >http://www.ovirt.org/OVirt_Engine_Development_Environment > > > >> _______________________________________________ > >> Engine-devel mailing list > >> Engine-devel@ovirt.org > >> http://lists.ovirt.org/mailman/listinfo/engine-devel > > _______________________________________________

On Friday, June 07, 2013 12:22:10 PM Alon Bar-Lev wrote:
----- Original Message -----
From: "Alexander Wels" <awels@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: engine-devel@ovirt.org, "bigclouds" <bigclouds@163.com> Sent: Friday, June 7, 2013 4:14:59 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
On Friday, June 07, 2013 08:26:32 AM Alon Bar-Lev wrote:
----- Original Message -----
From: "Alexander Wels" <awels@redhat.com> To: engine-devel@ovirt.org Cc: "Alon Bar-Lev" <alonbl@redhat.com>, "bigclouds" <bigclouds@163.com> Sent: Friday, June 7, 2013 3:09:19 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
On Friday, June 07, 2013 03:46:12 AM Alon Bar-Lev wrote:
----- Original Message -----
From: "bigclouds" <bigclouds@163.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: "Eli Mesika" <emesika@redhat.com>, "engine-devel" <engine-devel@ovirt.org> Sent: Friday, June 7, 2013 10:29:25 AM Subject: Re:Re: [Engine-devel] if there is a updated debug environment how to?
so many thinks,i finally make it.
if i can debug gwt in this environment? and how?
if this link is still in use, http://www.ovirt.org/DebugFrontend
thanks.
This is interesting, I would like to work with someone that knows GWT to make this happen.
If I read this correctly, all you need to do is:
$ make install-dev PREFIX="${HOME}/ovirt-engine" EXTRA_BUILD_FLAGS_DEV="-Pgwtdev"
And connect eclipse using the standard jboss debug port.
But I know nothing of GWT, I will appreciate help in that...
How do we connect to a running instance of jboss and debug gwt, what setting should we have?
Hi Alex,
Once you have the engine up and running as explained about, you can use http://www.ovirt.org/DebugFrontend to run GWT debugging. You can safely skip step 0 in that document (I think that needs to be updated). And start at step 1. The document explains quite well what to do, but the short version is:
1. cd into the source code directory of either webadmin or user portal. Usually: ovirt- engine/frontend/webadmin/modules/(webadmin or userportal-gwtp) 2. mvn gwt:debug -Pgwtdev,gwt-admin,gwt-user -Dgwt.noserver=true from the command line. Once it is done compiling it will tell you it is listening on port 8000.
This will not run as jboss, right?
No it is a normal java application (The GWT debugger).
Or you mean it will run on the jboss of the legacy (not the new environment). I would like a solution in which we can use the already running jboss instance that use for production in order to debug gwt. Is that possible? I guess some properties need to be passed, or new modules.
Thanks!
The GWT debugger is completely agnostic with regards to what serves the host page. The GWT debugger is connected to the browser, not the server. The host page can be served from a local JBOSS, a remote Apache, a file, whatever. The GWT debugger doesn't care as it is talking to the browser.
Can you please explain this text from the wiki:
gwt.noserver tells Development Mode that the application is already deployed on JBoss AS (don't use embedded Jetty instance to serve application content)
There are different ways of using the GWT debug mode. One of the ways is to have the GWT debugger spin up an instance of jetty and have your web application deployed in it. Then have it launch a browser with the appropriate url in it. Adding the --gwt.noserver on the command line tells GWT you don't want to spin up the jetty server, that the application you are working with is somewhere else and you will manually go to it.
Or this:
Q: Client-side logs are not persisted on Engine, e.g. $JBOSS_HOME/standalone/log/engine/engine-ui.log. A: Currently, client-side logs are enabled only when debugging the application via Development Mode.
When the application is running normally it is all just javascript running in the browser. There are 'log' statements in the code but no loggers to write the data to. When you are connected to the browser with the GWT debugger the GWT debugger provides a logger to write to.
What listens on port 8700?
In the old environment JBOSS. in the new environment nothing as JBOSS is listening on 8080 and 8443
Thanks!
IMO the only thing we could do to improve this is update the make file to provide a target to start the debugger, which basically just calls maven with the appropriate parameters.
3.In eclipse (or your favorite java IDE) make a remote java application connection to port 8000 4. Once connected this will open up a GWT debug window. 5. In your browser as ?gwt.codesvr=127.0.0.1:9997 to the url you are working with and refresh the page. 6. It will either ask you to install the plugin in your browser or load the page depending on if you have the plugin already.
Alexander
Thanks!
At 2013-06-07 14:55:41,"Alon Bar-Lev" <alonbl@redhat.com> wrote: >----- Original Message ----- > >> From: "bigclouds" <bigclouds@163.com> >> To: "Eli Mesika" <emesika@redhat.com> >> Cc: "engine-devel" <engine-devel@ovirt.org> >> Sent: Friday, June 7, 2013 3:49:15 AM >> Subject: Re: [Engine-devel] if there is a updated debug >> environment >> how >> to? >> >> hi: >> there is error when engine-setup-2. finally only 8702 and 8703 >> port >> is >> in >> listen state. >> i can not visit 8080 via browser. > >Well, if setup fails... probably application won't work. > >> engine-setup-2 >> [ INFO ] Creating CA >> [ INFO ] Creating database schema >> [ ERROR ] Failed to execute stage 'Misc configuration': Command >> '/home/best/ovirt-engine/share/ovirt-engine/dbscripts/create_sc >> hema >> .sh' >> failed to execute >> [ INFO ] Stage: Clean up >> Log file is located at >> /tmp/ovirt-engine-setup-20130606172206.log > >What database have you used? >If you don't have anything important there, can you please try to >initialize it so you start fresh? > ># systemctl stop postgresql.service ># rm -fr /var/lib/pgsql ># postgresql-setup initdb ># vi /var/lib/pgsql/data/pg_hba.conf >modify 127.0.0.1/32 and ::1/128 lines to password at last field ># su - postgres -c psql -d template1 >template1=# create user engine password 'engine'; >template1=# create database engine owner engine; ># \q > >> At 2013-06-06 05:17:07,"Eli Mesika" <emesika@redhat.com> wrote: >> >----- Original Message ----- >> > >> >> From: "bigclouds" <bigclouds@163.com> >> >> To: "engine-devel" <engine-devel@ovirt.org> >> >> Sent: Wednesday, June 5, 2013 12:34:30 PM >> >> Subject: [Engine-devel] if there is a updated debug >> >> environment >> >> how >> >> to? >> >> >> >> hi, engine guys: >> >> i want to make a engine debug environment for a looong time, >> >> due >> >> to >> >> all >> >> >> >> kinds >> >> >> >> of reasons i have not made it. >> >> now i still have the need for a debug environment. (it seems >> >> like >> >> that >> >> i >> >> >> >> am >> >> >> >> keeped away from you all) >> >> if there is a updated doc for building engine debug >> >> environment? >> >> thanks so much. >> > >> >Please follow Allon's B L doc on how to create a development >> >environment >> > >> >http://www.ovirt.org/OVirt_Engine_Development_Environment >> > >> >> _______________________________________________ >> >> Engine-devel mailing list >> >> Engine-devel@ovirt.org >> >> http://lists.ovirt.org/mailman/listinfo/engine-devel >> >> _______________________________________________

----- Original Message -----
From: "Alexander Wels" <awels@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: engine-devel@ovirt.org, "bigclouds" <bigclouds@163.com> Sent: Friday, June 7, 2013 8:35:27 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
On Friday, June 07, 2013 12:22:10 PM Alon Bar-Lev wrote:
----- Original Message -----
From: "Alexander Wels" <awels@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: engine-devel@ovirt.org, "bigclouds" <bigclouds@163.com> Sent: Friday, June 7, 2013 4:14:59 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
On Friday, June 07, 2013 08:26:32 AM Alon Bar-Lev wrote:
----- Original Message -----
From: "Alexander Wels" <awels@redhat.com> To: engine-devel@ovirt.org Cc: "Alon Bar-Lev" <alonbl@redhat.com>, "bigclouds" <bigclouds@163.com> Sent: Friday, June 7, 2013 3:09:19 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
On Friday, June 07, 2013 03:46:12 AM Alon Bar-Lev wrote:
----- Original Message -----
> From: "bigclouds" <bigclouds@163.com> > To: "Alon Bar-Lev" <alonbl@redhat.com> > Cc: "Eli Mesika" <emesika@redhat.com>, "engine-devel" > <engine-devel@ovirt.org> Sent: Friday, June 7, 2013 10:29:25 AM > Subject: Re:Re: [Engine-devel] if there is a updated debug > environment > how > to? > > so many thinks,i finally make it. > > if i can debug gwt in this environment? and how? > > > if this link is still in use, http://www.ovirt.org/DebugFrontend > > thanks.
This is interesting, I would like to work with someone that knows GWT to make this happen.
If I read this correctly, all you need to do is:
$ make install-dev PREFIX="${HOME}/ovirt-engine" EXTRA_BUILD_FLAGS_DEV="-Pgwtdev"
And connect eclipse using the standard jboss debug port.
But I know nothing of GWT, I will appreciate help in that...
How do we connect to a running instance of jboss and debug gwt, what setting should we have?
Hi Alex,
Once you have the engine up and running as explained about, you can use http://www.ovirt.org/DebugFrontend to run GWT debugging. You can safely skip step 0 in that document (I think that needs to be updated). And start at step 1. The document explains quite well what to do, but the short version is:
1. cd into the source code directory of either webadmin or user portal. Usually: ovirt- engine/frontend/webadmin/modules/(webadmin or userportal-gwtp) 2. mvn gwt:debug -Pgwtdev,gwt-admin,gwt-user -Dgwt.noserver=true from the command line. Once it is done compiling it will tell you it is listening on port 8000.
This will not run as jboss, right?
No it is a normal java application (The GWT debugger).
Or you mean it will run on the jboss of the legacy (not the new environment). I would like a solution in which we can use the already running jboss instance that use for production in order to debug gwt. Is that possible? I guess some properties need to be passed, or new modules.
Thanks!
The GWT debugger is completely agnostic with regards to what serves the host page. The GWT debugger is connected to the browser, not the server. The host page can be served from a local JBOSS, a remote Apache, a file, whatever. The GWT debugger doesn't care as it is talking to the browser.
Can you please explain this text from the wiki:
gwt.noserver tells Development Mode that the application is already deployed on JBoss AS (don't use embedded Jetty instance to serve application content)
There are different ways of using the GWT debug mode. One of the ways is to have the GWT debugger spin up an instance of jetty and have your web application deployed in it. Then have it launch a browser with the appropriate url in it. Adding the --gwt.noserver on the command line tells GWT you don't want to spin up the jetty server, that the application you are working with is somewhere else and you will manually go to it.
Or this:
Q: Client-side logs are not persisted on Engine, e.g. $JBOSS_HOME/standalone/log/engine/engine-ui.log. A: Currently, client-side logs are enabled only when debugging the application via Development Mode.
When the application is running normally it is all just javascript running in the browser. There are 'log' statements in the code but no loggers to write the data to. When you are connected to the browser with the GWT debugger the GWT debugger provides a logger to write to.
So how did it reached to the jboss-as log? Should I add configuration to jboss logging to have this?
What listens on port 8700?
In the old environment JBOSS. in the new environment nothing as JBOSS is listening on 8080 and 8443
OK, thanks. So if I understand correctly, the following is sequence is required: Build and deploy code: $ make install-dev PREFIX="${HOME}/ovirt-engine" $ "${HOME}/ovirt-engine/share/ovirt-engine/services/ovirt-engine.py" start Execute the gwt debugger as standalone $ mvn gwt:debug -Pgwtdev -Dgwt.noserver=true Connect eclipse gwt debugger to localhost:8000 Navigate to application, add ?gwt.codesvr=127.0.0.1:9997 as suffix, example: WebAdmin: http://127.0.0.1:8080/webadmin/webadmin/WebAdmin.html?gwt.codesvr=127.0.0.1:... UserPortal: http://127.0.0.1:8080/UserPortal/org.ovirt.engine.ui.userportal.UserPortal/U... In other words, it should not be required to re-compile the code to execute the debugger... as environment is fully deployed. Well, the above sequence is not working, I wounder what I miss in principal... the mvn gwt:debug complains about: [ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.3.0:debug (default-cli) on project webadmin: The parameters 'runTarget' for goal org.codehaus.mojo:gwt-maven-plugin:2.3.0:debug are missing or invalid -> [Help 1] Thanks!
Thanks!
IMO the only thing we could do to improve this is update the make file to provide a target to start the debugger, which basically just calls maven with the appropriate parameters.
3.In eclipse (or your favorite java IDE) make a remote java application connection to port 8000 4. Once connected this will open up a GWT debug window. 5. In your browser as ?gwt.codesvr=127.0.0.1:9997 to the url you are working with and refresh the page. 6. It will either ask you to install the plugin in your browser or load the page depending on if you have the plugin already.
Alexander
Thanks!
> At 2013-06-07 14:55:41,"Alon Bar-Lev" <alonbl@redhat.com> wrote: > >----- Original Message ----- > > > >> From: "bigclouds" <bigclouds@163.com> > >> To: "Eli Mesika" <emesika@redhat.com> > >> Cc: "engine-devel" <engine-devel@ovirt.org> > >> Sent: Friday, June 7, 2013 3:49:15 AM > >> Subject: Re: [Engine-devel] if there is a updated debug > >> environment > >> how > >> to? > >> > >> hi: > >> there is error when engine-setup-2. finally only 8702 and 8703 > >> port > >> is > >> in > >> listen state. > >> i can not visit 8080 via browser. > > > >Well, if setup fails... probably application won't work. > > > >> engine-setup-2 > >> [ INFO ] Creating CA > >> [ INFO ] Creating database schema > >> [ ERROR ] Failed to execute stage 'Misc configuration': > >> Command > >> '/home/best/ovirt-engine/share/ovirt-engine/dbscripts/create_sc > >> hema > >> .sh' > >> failed to execute > >> [ INFO ] Stage: Clean up > >> Log file is located at > >> /tmp/ovirt-engine-setup-20130606172206.log > > > >What database have you used? > >If you don't have anything important there, can you please try > >to > >initialize it so you start fresh? > > > ># systemctl stop postgresql.service > ># rm -fr /var/lib/pgsql > ># postgresql-setup initdb > ># vi /var/lib/pgsql/data/pg_hba.conf > >modify 127.0.0.1/32 and ::1/128 lines to password at last field > ># su - postgres -c psql -d template1 > >template1=# create user engine password 'engine'; > >template1=# create database engine owner engine; > ># \q > > > >> At 2013-06-06 05:17:07,"Eli Mesika" <emesika@redhat.com> > >> wrote: > >> >----- Original Message ----- > >> > > >> >> From: "bigclouds" <bigclouds@163.com> > >> >> To: "engine-devel" <engine-devel@ovirt.org> > >> >> Sent: Wednesday, June 5, 2013 12:34:30 PM > >> >> Subject: [Engine-devel] if there is a updated debug > >> >> environment > >> >> how > >> >> to? > >> >> > >> >> hi, engine guys: > >> >> i want to make a engine debug environment for a looong > >> >> time, > >> >> due > >> >> to > >> >> all > >> >> > >> >> kinds > >> >> > >> >> of reasons i have not made it. > >> >> now i still have the need for a debug environment. (it > >> >> seems > >> >> like > >> >> that > >> >> i > >> >> > >> >> am > >> >> > >> >> keeped away from you all) > >> >> if there is a updated doc for building engine debug > >> >> environment? > >> >> thanks so much. > >> > > >> >Please follow Allon's B L doc on how to create a development > >> >environment > >> > > >> >http://www.ovirt.org/OVirt_Engine_Development_Environment > >> > > >> >> _______________________________________________ > >> >> Engine-devel mailing list > >> >> Engine-devel@ovirt.org > >> >> http://lists.ovirt.org/mailman/listinfo/engine-devel > >> > >> _______________________________________________

On Friday, June 07, 2013 03:20:11 PM Alon Bar-Lev wrote:
----- Original Message -----
From: "Alexander Wels" <awels@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: engine-devel@ovirt.org, "bigclouds" <bigclouds@163.com> Sent: Friday, June 7, 2013 8:35:27 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
On Friday, June 07, 2013 12:22:10 PM Alon Bar-Lev wrote:
----- Original Message -----
From: "Alexander Wels" <awels@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: engine-devel@ovirt.org, "bigclouds" <bigclouds@163.com> Sent: Friday, June 7, 2013 4:14:59 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
On Friday, June 07, 2013 08:26:32 AM Alon Bar-Lev wrote:
----- Original Message -----
From: "Alexander Wels" <awels@redhat.com> To: engine-devel@ovirt.org Cc: "Alon Bar-Lev" <alonbl@redhat.com>, "bigclouds" <bigclouds@163.com> Sent: Friday, June 7, 2013 3:09:19 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
On Friday, June 07, 2013 03:46:12 AM Alon Bar-Lev wrote: > ----- Original Message ----- > > > From: "bigclouds" <bigclouds@163.com> > > To: "Alon Bar-Lev" <alonbl@redhat.com> > > Cc: "Eli Mesika" <emesika@redhat.com>, "engine-devel" > > <engine-devel@ovirt.org> Sent: Friday, June 7, 2013 10:29:25 > > AM > > Subject: Re:Re: [Engine-devel] if there is a updated debug > > environment > > how > > to? > > > > so many thinks,i finally make it. > > > > if i can debug gwt in this environment? and how? > > > > > > if this link is still in use, > > http://www.ovirt.org/DebugFrontend > > > > thanks. > > This is interesting, I would like to work with someone that > knows > GWT > to > make this happen. > > If I read this correctly, all you need to do is: > > $ make install-dev PREFIX="${HOME}/ovirt-engine" > EXTRA_BUILD_FLAGS_DEV="-Pgwtdev" > > And connect eclipse using the standard jboss debug port. > > But I know nothing of GWT, I will appreciate help in that... > > How do we connect to a running instance of jboss and debug gwt, > what > setting > should we have?
Hi Alex,
Once you have the engine up and running as explained about, you can use http://www.ovirt.org/DebugFrontend to run GWT debugging. You can safely skip step 0 in that document (I think that needs to be updated). And start at step 1. The document explains quite well what to do, but the short version is:
1. cd into the source code directory of either webadmin or user portal. Usually: ovirt- engine/frontend/webadmin/modules/(webadmin or userportal-gwtp) 2. mvn gwt:debug -Pgwtdev,gwt-admin,gwt-user -Dgwt.noserver=true from the command line. Once it is done compiling it will tell you it is listening on port 8000.
This will not run as jboss, right?
No it is a normal java application (The GWT debugger).
Or you mean it will run on the jboss of the legacy (not the new environment). I would like a solution in which we can use the already running jboss instance that use for production in order to debug gwt. Is that possible? I guess some properties need to be passed, or new modules.
Thanks!
The GWT debugger is completely agnostic with regards to what serves the host page. The GWT debugger is connected to the browser, not the server. The host page can be served from a local JBOSS, a remote Apache, a file, whatever. The GWT debugger doesn't care as it is talking to the browser.
Can you please explain this text from the wiki:
gwt.noserver tells Development Mode that the application is already deployed on JBoss AS (don't use embedded Jetty instance to serve application content)
There are different ways of using the GWT debug mode. One of the ways is to have the GWT debugger spin up an instance of jetty and have your web application deployed in it. Then have it launch a browser with the appropriate url in it. Adding the --gwt.noserver on the command line tells GWT you don't want to spin up the jetty server, that the application you are working with is somewhere else and you will manually go to it.
Or this:
Q: Client-side logs are not persisted on Engine, e.g. $JBOSS_HOME/standalone/log/engine/engine-ui.log. A: Currently, client-side logs are enabled only when debugging the application via Development Mode.
When the application is running normally it is all just javascript running in the browser. There are 'log' statements in the code but no loggers to write the data to. When you are connected to the browser with the GWT debugger the GWT debugger provides a logger to write to.
So how did it reached to the jboss-as log? Should I add configuration to jboss logging to have this?
What listens on port 8700?
In the old environment JBOSS. in the new environment nothing as JBOSS is listening on 8080 and 8443
OK, thanks.
So if I understand correctly, the following is sequence is required:
Build and deploy code: $ make install-dev PREFIX="${HOME}/ovirt-engine" $ "${HOME}/ovirt-engine/share/ovirt-engine/services/ovirt-engine.py" start
You missed this part: 1. cd into the source code directory of either webadmin or user portal. you have to change directory to either frontend/webadmin/modules/webadmin or frontend/webadmin/modules/userportal-gwtp As the maven gwt plugin is only defined in the webadmin and userportal poms and not in the root pom.
Execute the gwt debugger as standalone $ mvn gwt:debug -Pgwtdev -Dgwt.noserver=true
Connect eclipse gwt debugger to localhost:8000
Navigate to application, add ?gwt.codesvr=127.0.0.1:9997 as suffix, example: WebAdmin: http://127.0.0.1:8080/webadmin/webadmin/WebAdmin.html?gwt.codesvr=127.0.0.1 :9997 UserPortal: http://127.0.0.1:8080/UserPortal/org.ovirt.engine.ui.userportal.UserPortal/ UserPortal.html?gwt.codesvr=127.0.0.1:9997
In other words, it should not be required to re-compile the code to execute the debugger... as environment is fully deployed.
Well, the above sequence is not working, I wounder what I miss in principal... the mvn gwt:debug complains about: [ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.3.0:debug (default-cli) on project webadmin: The parameters 'runTarget' for goal org.codehaus.mojo:gwt-maven-plugin:2.3.0:debug are missing or invalid -> [Help 1]
Thanks!
Thanks!
IMO the only thing we could do to improve this is update the make file to provide a target to start the debugger, which basically just calls maven with the appropriate parameters.
3.In eclipse (or your favorite java IDE) make a remote java application connection to port 8000 4. Once connected this will open up a GWT debug window. 5. In your browser as ?gwt.codesvr=127.0.0.1:9997 to the url you are working with and refresh the page. 6. It will either ask you to install the plugin in your browser or load the page depending on if you have the plugin already.
Alexander
> Thanks! > > > At 2013-06-07 14:55:41,"Alon Bar-Lev" <alonbl@redhat.com> wrote: > > >----- Original Message ----- > > > > > >> From: "bigclouds" <bigclouds@163.com> > > >> To: "Eli Mesika" <emesika@redhat.com> > > >> Cc: "engine-devel" <engine-devel@ovirt.org> > > >> Sent: Friday, June 7, 2013 3:49:15 AM > > >> Subject: Re: [Engine-devel] if there is a updated debug > > >> environment > > >> how > > >> to? > > >> > > >> hi: > > >> there is error when engine-setup-2. finally only 8702 and > > >> 8703 > > >> port > > >> is > > >> in > > >> listen state. > > >> i can not visit 8080 via browser. > > > > > >Well, if setup fails... probably application won't work. > > > > > >> engine-setup-2 > > >> [ INFO ] Creating CA > > >> [ INFO ] Creating database schema > > >> [ ERROR ] Failed to execute stage 'Misc configuration': > > >> Command > > >> '/home/best/ovirt-engine/share/ovirt-engine/dbscripts/creat > > >> e_sc > > >> hema > > >> .sh' > > >> failed to execute > > >> [ INFO ] Stage: Clean up > > >> Log file is located at > > >> /tmp/ovirt-engine-setup-20130606172206.log > > > > > >What database have you used? > > >If you don't have anything important there, can you please > > >try > > >to > > >initialize it so you start fresh? > > > > > ># systemctl stop postgresql.service > > ># rm -fr /var/lib/pgsql > > ># postgresql-setup initdb > > ># vi /var/lib/pgsql/data/pg_hba.conf > > >modify 127.0.0.1/32 and ::1/128 lines to password at last > > >field > > ># su - postgres -c psql -d template1 > > >template1=# create user engine password 'engine'; > > >template1=# create database engine owner engine; > > ># \q > > > > > >> At 2013-06-06 05:17:07,"Eli Mesika" <emesika@redhat.com> > > >> > > >> wrote: > > >> >----- Original Message ----- > > >> > > > >> >> From: "bigclouds" <bigclouds@163.com> > > >> >> To: "engine-devel" <engine-devel@ovirt.org> > > >> >> Sent: Wednesday, June 5, 2013 12:34:30 PM > > >> >> Subject: [Engine-devel] if there is a updated debug > > >> >> environment > > >> >> how > > >> >> to? > > >> >> > > >> >> hi, engine guys: > > >> >> i want to make a engine debug environment for a looong > > >> >> time, > > >> >> due > > >> >> to > > >> >> all > > >> >> > > >> >> kinds > > >> >> > > >> >> of reasons i have not made it. > > >> >> now i still have the need for a debug environment. (it > > >> >> seems > > >> >> like > > >> >> that > > >> >> i > > >> >> > > >> >> am > > >> >> > > >> >> keeped away from you all) > > >> >> if there is a updated doc for building engine debug > > >> >> environment? > > >> >> thanks so much. > > >> > > > >> >Please follow Allon's B L doc on how to create a > > >> >development > > >> >environment > > >> > > > >> >http://www.ovirt.org/OVirt_Engine_Development_Environment > > >> > > > >> >> _______________________________________________ > > >> >> Engine-devel mailing list > > >> >> Engine-devel@ovirt.org > > >> >> http://lists.ovirt.org/mailman/listinfo/engine-devel > > >> > > >> _______________________________________________

----- Original Message -----
From: "Alexander Wels" <awels@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: engine-devel@ovirt.org, "bigclouds" <bigclouds@163.com> Sent: Friday, June 7, 2013 10:27:54 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
On Friday, June 07, 2013 03:20:11 PM Alon Bar-Lev wrote:
----- Original Message -----
From: "Alexander Wels" <awels@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: engine-devel@ovirt.org, "bigclouds" <bigclouds@163.com> Sent: Friday, June 7, 2013 8:35:27 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
On Friday, June 07, 2013 12:22:10 PM Alon Bar-Lev wrote:
----- Original Message -----
From: "Alexander Wels" <awels@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: engine-devel@ovirt.org, "bigclouds" <bigclouds@163.com> Sent: Friday, June 7, 2013 4:14:59 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
On Friday, June 07, 2013 08:26:32 AM Alon Bar-Lev wrote:
----- Original Message -----
> From: "Alexander Wels" <awels@redhat.com> > To: engine-devel@ovirt.org > Cc: "Alon Bar-Lev" <alonbl@redhat.com>, "bigclouds" > <bigclouds@163.com> > Sent: Friday, June 7, 2013 3:09:19 PM > Subject: Re: [Engine-devel] if there is a updated debug > environment > how > to? > > On Friday, June 07, 2013 03:46:12 AM Alon Bar-Lev wrote: > > ----- Original Message ----- > > > > > From: "bigclouds" <bigclouds@163.com> > > > To: "Alon Bar-Lev" <alonbl@redhat.com> > > > Cc: "Eli Mesika" <emesika@redhat.com>, "engine-devel" > > > <engine-devel@ovirt.org> Sent: Friday, June 7, 2013 10:29:25 > > > AM > > > Subject: Re:Re: [Engine-devel] if there is a updated debug > > > environment > > > how > > > to? > > > > > > so many thinks,i finally make it. > > > > > > if i can debug gwt in this environment? and how? > > > > > > > > > if this link is still in use, > > > http://www.ovirt.org/DebugFrontend > > > > > > thanks. > > > > This is interesting, I would like to work with someone that > > knows > > GWT > > to > > make this happen. > > > > If I read this correctly, all you need to do is: > > > > $ make install-dev PREFIX="${HOME}/ovirt-engine" > > EXTRA_BUILD_FLAGS_DEV="-Pgwtdev" > > > > And connect eclipse using the standard jboss debug port. > > > > But I know nothing of GWT, I will appreciate help in that... > > > > How do we connect to a running instance of jboss and debug gwt, > > what > > setting > > should we have?
Hi Alex,
> Once you have the engine up and running as explained about, you > can > use > http://www.ovirt.org/DebugFrontend to run GWT debugging. You can > safely > skip step 0 > in that document (I think that needs to be updated). And start at > step > 1. > The document explains quite well what to do, but the short > version > is: > > 1. cd into the source code directory of either webadmin or user > portal. > Usually: ovirt- > engine/frontend/webadmin/modules/(webadmin or userportal-gwtp) > 2. mvn gwt:debug -Pgwtdev,gwt-admin,gwt-user -Dgwt.noserver=true > from > the > command line. Once it is done compiling it will tell you it is > listening > on > port 8000.
This will not run as jboss, right?
No it is a normal java application (The GWT debugger).
Or you mean it will run on the jboss of the legacy (not the new environment). I would like a solution in which we can use the already running jboss instance that use for production in order to debug gwt. Is that possible? I guess some properties need to be passed, or new modules.
Thanks!
The GWT debugger is completely agnostic with regards to what serves the host page. The GWT debugger is connected to the browser, not the server. The host page can be served from a local JBOSS, a remote Apache, a file, whatever. The GWT debugger doesn't care as it is talking to the browser.
Can you please explain this text from the wiki:
gwt.noserver tells Development Mode that the application is already deployed on JBoss AS (don't use embedded Jetty instance to serve application content)
There are different ways of using the GWT debug mode. One of the ways is to have the GWT debugger spin up an instance of jetty and have your web application deployed in it. Then have it launch a browser with the appropriate url in it. Adding the --gwt.noserver on the command line tells GWT you don't want to spin up the jetty server, that the application you are working with is somewhere else and you will manually go to it.
Or this:
Q: Client-side logs are not persisted on Engine, e.g. $JBOSS_HOME/standalone/log/engine/engine-ui.log. A: Currently, client-side logs are enabled only when debugging the application via Development Mode.
When the application is running normally it is all just javascript running in the browser. There are 'log' statements in the code but no loggers to write the data to. When you are connected to the browser with the GWT debugger the GWT debugger provides a logger to write to.
So how did it reached to the jboss-as log? Should I add configuration to jboss logging to have this?
What listens on port 8700?
In the old environment JBOSS. in the new environment nothing as JBOSS is listening on 8080 and 8443
OK, thanks.
So if I understand correctly, the following is sequence is required:
Build and deploy code: $ make install-dev PREFIX="${HOME}/ovirt-engine" $ "${HOME}/ovirt-engine/share/ovirt-engine/services/ovirt-engine.py" start
You missed this part: 1. cd into the source code directory of either webadmin or user portal. you have to change directory to either frontend/webadmin/modules/webadmin or frontend/webadmin/modules/userportal-gwtp
As the maven gwt plugin is only defined in the webadmin and userportal poms and not in the root pom.
Is there any reason why not to add <something> to root pom? Activating the debugger should be generic, right, I mean it should not have any dependency with specific module... the fact that we use maven for that is only as a wrapper, right?
Execute the gwt debugger as standalone $ mvn gwt:debug -Pgwtdev -Dgwt.noserver=true
Connect eclipse gwt debugger to localhost:8000
Navigate to application, add ?gwt.codesvr=127.0.0.1:9997 as suffix, example: WebAdmin: http://127.0.0.1:8080/webadmin/webadmin/WebAdmin.html?gwt.codesvr=127.0.0.1 :9997 UserPortal: http://127.0.0.1:8080/UserPortal/org.ovirt.engine.ui.userportal.UserPortal/ UserPortal.html?gwt.codesvr=127.0.0.1:9997
In other words, it should not be required to re-compile the code to execute the debugger... as environment is fully deployed.
Well, the above sequence is not working, I wounder what I miss in principal... the mvn gwt:debug complains about: [ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.3.0:debug (default-cli) on project webadmin: The parameters 'runTarget' for goal org.codehaus.mojo:gwt-maven-plugin:2.3.0:debug are missing or invalid -> [Help 1]
Thanks!
Thanks!
IMO the only thing we could do to improve this is update the make file to provide a target to start the debugger, which basically just calls maven with the appropriate parameters.
> 3.In eclipse (or your favorite java IDE) make a remote java > application > connection to > port 8000 > 4. Once connected this will open up a GWT debug window. > 5. In your browser as ?gwt.codesvr=127.0.0.1:9997 to the url you > are > working with and > refresh the page. > 6. It will either ask you to install the plugin in your browser > or > load > the > page depending > on if you have the plugin already. > > Alexander > > > Thanks! > > > > > At 2013-06-07 14:55:41,"Alon Bar-Lev" <alonbl@redhat.com> wrote: > > > >----- Original Message ----- > > > > > > > >> From: "bigclouds" <bigclouds@163.com> > > > >> To: "Eli Mesika" <emesika@redhat.com> > > > >> Cc: "engine-devel" <engine-devel@ovirt.org> > > > >> Sent: Friday, June 7, 2013 3:49:15 AM > > > >> Subject: Re: [Engine-devel] if there is a updated debug > > > >> environment > > > >> how > > > >> to? > > > >> > > > >> hi: > > > >> there is error when engine-setup-2. finally only 8702 and > > > >> 8703 > > > >> port > > > >> is > > > >> in > > > >> listen state. > > > >> i can not visit 8080 via browser. > > > > > > > >Well, if setup fails... probably application won't work. > > > > > > > >> engine-setup-2 > > > >> [ INFO ] Creating CA > > > >> [ INFO ] Creating database schema > > > >> [ ERROR ] Failed to execute stage 'Misc configuration': > > > >> Command > > > >> '/home/best/ovirt-engine/share/ovirt-engine/dbscripts/creat > > > >> e_sc > > > >> hema > > > >> .sh' > > > >> failed to execute > > > >> [ INFO ] Stage: Clean up > > > >> Log file is located at > > > >> /tmp/ovirt-engine-setup-20130606172206.log > > > > > > > >What database have you used? > > > >If you don't have anything important there, can you please > > > >try > > > >to > > > >initialize it so you start fresh? > > > > > > > ># systemctl stop postgresql.service > > > ># rm -fr /var/lib/pgsql > > > ># postgresql-setup initdb > > > ># vi /var/lib/pgsql/data/pg_hba.conf > > > >modify 127.0.0.1/32 and ::1/128 lines to password at last > > > >field > > > ># su - postgres -c psql -d template1 > > > >template1=# create user engine password 'engine'; > > > >template1=# create database engine owner engine; > > > ># \q > > > > > > > >> At 2013-06-06 05:17:07,"Eli Mesika" <emesika@redhat.com> > > > >> > > > >> wrote: > > > >> >----- Original Message ----- > > > >> > > > > >> >> From: "bigclouds" <bigclouds@163.com> > > > >> >> To: "engine-devel" <engine-devel@ovirt.org> > > > >> >> Sent: Wednesday, June 5, 2013 12:34:30 PM > > > >> >> Subject: [Engine-devel] if there is a updated debug > > > >> >> environment > > > >> >> how > > > >> >> to? > > > >> >> > > > >> >> hi, engine guys: > > > >> >> i want to make a engine debug environment for a looong > > > >> >> time, > > > >> >> due > > > >> >> to > > > >> >> all > > > >> >> > > > >> >> kinds > > > >> >> > > > >> >> of reasons i have not made it. > > > >> >> now i still have the need for a debug environment. (it > > > >> >> seems > > > >> >> like > > > >> >> that > > > >> >> i > > > >> >> > > > >> >> am > > > >> >> > > > >> >> keeped away from you all) > > > >> >> if there is a updated doc for building engine debug > > > >> >> environment? > > > >> >> thanks so much. > > > >> > > > > >> >Please follow Allon's B L doc on how to create a > > > >> >development > > > >> >environment > > > >> > > > > >> >http://www.ovirt.org/OVirt_Engine_Development_Environment > > > >> > > > > >> >> _______________________________________________ > > > >> >> Engine-devel mailing list > > > >> >> Engine-devel@ovirt.org > > > >> >> http://lists.ovirt.org/mailman/listinfo/engine-devel > > > >> > > > >> _______________________________________________

On Friday, June 07, 2013 03:51:17 PM Alon Bar-Lev wrote:
----- Original Message -----
From: "Alexander Wels" <awels@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: engine-devel@ovirt.org, "bigclouds" <bigclouds@163.com> Sent: Friday, June 7, 2013 10:27:54 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
On Friday, June 07, 2013 03:20:11 PM Alon Bar-Lev wrote:
----- Original Message -----
From: "Alexander Wels" <awels@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: engine-devel@ovirt.org, "bigclouds" <bigclouds@163.com> Sent: Friday, June 7, 2013 8:35:27 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
On Friday, June 07, 2013 12:22:10 PM Alon Bar-Lev wrote:
----- Original Message -----
From: "Alexander Wels" <awels@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: engine-devel@ovirt.org, "bigclouds" <bigclouds@163.com> Sent: Friday, June 7, 2013 4:14:59 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
On Friday, June 07, 2013 08:26:32 AM Alon Bar-Lev wrote: > ----- Original Message ----- > > > From: "Alexander Wels" <awels@redhat.com> > > To: engine-devel@ovirt.org > > Cc: "Alon Bar-Lev" <alonbl@redhat.com>, "bigclouds" > > <bigclouds@163.com> > > Sent: Friday, June 7, 2013 3:09:19 PM > > Subject: Re: [Engine-devel] if there is a updated debug > > environment > > how > > to? > > > > On Friday, June 07, 2013 03:46:12 AM Alon Bar-Lev wrote: > > > ----- Original Message ----- > > > > > > > From: "bigclouds" <bigclouds@163.com> > > > > To: "Alon Bar-Lev" <alonbl@redhat.com> > > > > Cc: "Eli Mesika" <emesika@redhat.com>, "engine-devel" > > > > <engine-devel@ovirt.org> Sent: Friday, June 7, 2013 > > > > 10:29:25 > > > > AM > > > > Subject: Re:Re: [Engine-devel] if there is a updated debug > > > > environment > > > > how > > > > to? > > > > > > > > so many thinks,i finally make it. > > > > > > > > if i can debug gwt in this environment? and how? > > > > > > > > > > > > if this link is still in use, > > > > http://www.ovirt.org/DebugFrontend > > > > > > > > thanks. > > > > > > This is interesting, I would like to work with someone that > > > knows > > > GWT > > > to > > > make this happen. > > > > > > If I read this correctly, all you need to do is: > > > > > > $ make install-dev PREFIX="${HOME}/ovirt-engine" > > > EXTRA_BUILD_FLAGS_DEV="-Pgwtdev" > > > > > > And connect eclipse using the standard jboss debug port. > > > > > > But I know nothing of GWT, I will appreciate help in that... > > > > > > How do we connect to a running instance of jboss and debug > > > gwt, > > > what > > > setting > > > should we have? > > Hi Alex, > > > Once you have the engine up and running as explained about, > > you > > can > > use > > http://www.ovirt.org/DebugFrontend to run GWT debugging. You > > can > > safely > > skip step 0 > > in that document (I think that needs to be updated). And start > > at > > step > > 1. > > The document explains quite well what to do, but the short > > version > > is: > > > > 1. cd into the source code directory of either webadmin or > > user > > portal. > > Usually: ovirt- > > engine/frontend/webadmin/modules/(webadmin or userportal-gwtp) > > 2. mvn gwt:debug -Pgwtdev,gwt-admin,gwt-user > > -Dgwt.noserver=true > > from > > the > > command line. Once it is done compiling it will tell you it is > > listening > > on > > port 8000. > > This will not run as jboss, right?
No it is a normal java application (The GWT debugger).
> Or you mean it will run on the jboss of the legacy (not the new > environment). I would like a solution in which we can use the > already > running jboss instance that use for production in order to debug > gwt. > Is > that possible? > I guess some properties need to be passed, or new modules. > > Thanks!
The GWT debugger is completely agnostic with regards to what serves the host page. The GWT debugger is connected to the browser, not the server. The host page can be served from a local JBOSS, a remote Apache, a file, whatever. The GWT debugger doesn't care as it is talking to the browser.
Can you please explain this text from the wiki:
gwt.noserver tells Development Mode that the application is already deployed on JBoss AS (don't use embedded Jetty instance to serve application content)
There are different ways of using the GWT debug mode. One of the ways is to have the GWT debugger spin up an instance of jetty and have your web application deployed in it. Then have it launch a browser with the appropriate url in it. Adding the --gwt.noserver on the command line tells GWT you don't want to spin up the jetty server, that the application you are working with is somewhere else and you will manually go to it.
Or this:
Q: Client-side logs are not persisted on Engine, e.g. $JBOSS_HOME/standalone/log/engine/engine-ui.log. A: Currently, client-side logs are enabled only when debugging the application via Development Mode.
When the application is running normally it is all just javascript running in the browser. There are 'log' statements in the code but no loggers to write the data to. When you are connected to the browser with the GWT debugger the GWT debugger provides a logger to write to.
So how did it reached to the jboss-as log? Should I add configuration to jboss logging to have this?
What listens on port 8700?
In the old environment JBOSS. in the new environment nothing as JBOSS is listening on 8080 and 8443
OK, thanks.
So if I understand correctly, the following is sequence is required:
Build and deploy code: $ make install-dev PREFIX="${HOME}/ovirt-engine" $ "${HOME}/ovirt-engine/share/ovirt-engine/services/ovirt-engine.py" start
You missed this part: 1. cd into the source code directory of either webadmin or user portal. you have to change directory to either frontend/webadmin/modules/webadmin or frontend/webadmin/modules/userportal-gwtp
As the maven gwt plugin is only defined in the webadmin and userportal poms and not in the root pom.
It doesn't make much sense to put the gwt plugin in the root pom, as the root pom has nothing to do with GWT. The plugin exists in userportal and webadmin as those are GWT modules. The debugger is specifically a GWT debugger, you can't debug anything else with it.
Is there any reason why not to add <something> to root pom? Activating the debugger should be generic, right, I mean it should not have any dependency with specific module... the fact that we use maven for that is only as a wrapper, right?
Execute the gwt debugger as standalone $ mvn gwt:debug -Pgwtdev -Dgwt.noserver=true
Connect eclipse gwt debugger to localhost:8000
Navigate to application, add ?gwt.codesvr=127.0.0.1:9997 as suffix, example: WebAdmin: http://127.0.0.1:8080/webadmin/webadmin/WebAdmin.html?gwt.codesvr=127.0. 0.1
:9997 UserPortal: http://127.0.0.1:8080/UserPortal/org.ovirt.engine.ui.userportal.UserPort al/ UserPortal.html?gwt.codesvr=127.0.0.1:9997
In other words, it should not be required to re-compile the code to execute the debugger... as environment is fully deployed.
Well, the above sequence is not working, I wounder what I miss in principal... the mvn gwt:debug complains about: [ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.3.0:debug (default-cli) on project webadmin: The parameters 'runTarget' for goal org.codehaus.mojo:gwt-maven-plugin:2.3.0:debug are missing or invalid -> [Help 1]
Thanks!
Thanks!
IMO the only thing we could do to improve this is update the make file to provide a target to start the debugger, which basically just calls maven with the appropriate parameters.
> > 3.In eclipse (or your favorite java IDE) make a remote java > > application > > connection to > > port 8000 > > 4. Once connected this will open up a GWT debug window. > > 5. In your browser as ?gwt.codesvr=127.0.0.1:9997 to the url > > you > > are > > working with and > > refresh the page. > > 6. It will either ask you to install the plugin in your > > browser > > or > > load > > the > > page depending > > on if you have the plugin already. > > > > Alexander > > > > > Thanks! > > > > > > > At 2013-06-07 14:55:41,"Alon Bar-Lev" <alonbl@redhat.com>
wrote:
> > > > >----- Original Message ----- > > > > > > > > > >> From: "bigclouds" <bigclouds@163.com> > > > > >> To: "Eli Mesika" <emesika@redhat.com> > > > > >> Cc: "engine-devel" <engine-devel@ovirt.org> > > > > >> Sent: Friday, June 7, 2013 3:49:15 AM > > > > >> Subject: Re: [Engine-devel] if there is a updated debug > > > > >> environment > > > > >> how > > > > >> to? > > > > >> > > > > >> hi: > > > > >> there is error when engine-setup-2. finally only 8702 > > > > >> and > > > > >> 8703 > > > > >> port > > > > >> is > > > > >> in > > > > >> listen state. > > > > >> i can not visit 8080 via browser. > > > > > > > > > >Well, if setup fails... probably application won't work. > > > > > > > > > >> engine-setup-2 > > > > >> [ INFO ] Creating CA > > > > >> [ INFO ] Creating database schema > > > > >> [ ERROR ] Failed to execute stage 'Misc configuration': > > > > >> Command > > > > >> '/home/best/ovirt-engine/share/ovirt-engine/dbscripts/c > > > > >> reat > > > > >> e_sc > > > > >> hema > > > > >> .sh' > > > > >> failed to execute > > > > >> [ INFO ] Stage: Clean up > > > > >> Log file is located at > > > > >> /tmp/ovirt-engine-setup-20130606172206.log > > > > > > > > > >What database have you used? > > > > >If you don't have anything important there, can you > > > > >please > > > > >try > > > > >to > > > > >initialize it so you start fresh? > > > > > > > > > ># systemctl stop postgresql.service > > > > ># rm -fr /var/lib/pgsql > > > > ># postgresql-setup initdb > > > > ># vi /var/lib/pgsql/data/pg_hba.conf > > > > >modify 127.0.0.1/32 and ::1/128 lines to password at last > > > > >field > > > > ># su - postgres -c psql -d template1 > > > > >template1=# create user engine password 'engine'; > > > > >template1=# create database engine owner engine; > > > > ># \q > > > > > > > > > >> At 2013-06-06 05:17:07,"Eli Mesika" > > > > >> <emesika@redhat.com> > > > > >> > > > > >> wrote: > > > > >> >----- Original Message ----- > > > > >> > > > > > >> >> From: "bigclouds" <bigclouds@163.com> > > > > >> >> To: "engine-devel" <engine-devel@ovirt.org> > > > > >> >> Sent: Wednesday, June 5, 2013 12:34:30 PM > > > > >> >> Subject: [Engine-devel] if there is a updated debug > > > > >> >> environment > > > > >> >> how > > > > >> >> to? > > > > >> >> > > > > >> >> hi, engine guys: > > > > >> >> i want to make a engine debug environment for a > > > > >> >> looong > > > > >> >> time, > > > > >> >> due > > > > >> >> to > > > > >> >> all > > > > >> >> > > > > >> >> kinds > > > > >> >> > > > > >> >> of reasons i have not made it. > > > > >> >> now i still have the need for a debug environment. > > > > >> >> (it > > > > >> >> seems > > > > >> >> like > > > > >> >> that > > > > >> >> i > > > > >> >> > > > > >> >> am > > > > >> >> > > > > >> >> keeped away from you all) > > > > >> >> if there is a updated doc for building engine debug > > > > >> >> environment? > > > > >> >> thanks so much. > > > > >> > > > > > >> >Please follow Allon's B L doc on how to create a > > > > >> >development > > > > >> >environment > > > > >> > > > > > >> >http://www.ovirt.org/OVirt_Engine_Development_Environm > > > > >> >ent > > > > >> > > > > > >> >> _______________________________________________ > > > > >> >> Engine-devel mailing list > > > > >> >> Engine-devel@ovirt.org > > > > >> >> http://lists.ovirt.org/mailman/listinfo/engine-devel > > > > >> > > > > >> _______________________________________________

----- Original Message -----
From: "Alexander Wels" <awels@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: engine-devel@ovirt.org, "bigclouds" <bigclouds@163.com> Sent: Friday, June 7, 2013 10:56:40 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
So if I understand correctly, the following is sequence is required:
Build and deploy code: $ make install-dev PREFIX="${HOME}/ovirt-engine" $ "${HOME}/ovirt-engine/share/ovirt-engine/services/ovirt-engine.py" start
You missed this part: 1. cd into the source code directory of either webadmin or user portal. you have to change directory to either frontend/webadmin/modules/webadmin or frontend/webadmin/modules/userportal-gwtp
As the maven gwt plugin is only defined in the webadmin and userportal poms and not in the root pom.
It doesn't make much sense to put the gwt plugin in the root pom, as the root pom has nothing to do with GWT. The plugin exists in userportal and webadmin as those are GWT modules. The debugger is specifically a GWT debugger, you can't debug anything else with it.
You perceive this as something of gwt project, while I perceive this part of the environment. What I expect it to allow as simple development environment as we can. Just like I enable the debug port of jboss automatically I would like to enable gwt debug. If I add "-P gwtdev" to default build using install-dev, all gwt applications should be built and installed using the extra debugging information, using: $ make install-dev PREFIX="${HOME}/ovirt-engine" I can even add GWT_DEBUGGER=1 to optionally enable/disable this feature. Now, after starting ovirt-engine service, all I expect is a simple command to start the gwt debugger. $ make gwt-debugger or: ./gwt-debugger The fact that maven is used to start the debugger is not important. What I do expect is that the debugger not to require a specific relation with specific application (Webadmin, userportal). I would have understood if I had to execute something like the following to run the debugger: $ cd frontend $ mvn gwt:debug -Dgwt.noserver=true Or better to avoid building anything: $ cd frontend/debugger $ mvn gwt:debug -Dgwt.noserver=true But I do not understand why a cd to specific application is required. Thanks! Alon

Hi Alon, revisiting this thread, I have some comments regarding GWT debugging via standard development environment, as described in README.developer. - README.developer says: For example, if your machine is low on memory, use: EXTRA_BUILD_FLAGS_DEV="-Dgwt-plugin.localWorkers=2" however this should be: For example, if your machine is low on memory, use: EXTRA_BUILD_FLAGS_DEV="-Dgwt.compiler.localWorkers=2" - README.developer says: By default, only the gecko1_8 support is built I'd rather explain what this means: By default, only the gecko1_8 (Mozilla Firefox) support is built - what's the point of having EXTRA_BUILD_FLAGS_DEV_GWT vs. EXTRA_BUILD_FLAGS_DEV ? if EXTRA_BUILD_FLAGS_DEV_GWT is meant to control target browser(s) then it should be renamed appropriately if EXTRA_BUILD_FLAGS_DEV_GWT is meant to group all GWT-specific flags, README.developer shouldn't advise to do EXTRA_BUILD_FLAGS_DEV="-Dgwt..." - Makefile gwt-debug target looks OK to me
What I do expect is that the debugger not to require a specific relation with specific application (Webadmin, userportal).
gwt-maven-plugin must be invoked in context of a specific Maven module representing GWT application you want to debug. In other words, you need to start GWT Development Mode for specific application module. This is why you need to "cd" to specific directory (webadmin/userportal-gwtp) before invoking "mvn ... gwt:debug" command. You cannot start GWT Development Mode in a generic (application-agnostic) way and *then* connect to it from browser and Java IDE, this is not how GWT Development Mode is meant to be used. JBoss remote socket debugging and GWT application debugging are two different things.
The fact that maven is used to start the debugger is not important.
gwt-maven-plugin is just a wrapper to invoke GWT Development Mode (Java class). Regardless of how you start GWT Development Mode, you need to specify which application (more precisely, GWT modules) you want to debug right when starting GWT Development Mode. See [1] - "module(s)" are always specific for given application. [1] https://developers.google.com/web-toolkit/doc/latest/DevGuideCompilingAndDeb...
If I add "-P gwtdev" to default build using install-dev, all gwt applications should be built and installed using the extra debugging information, using:
Yes, as described in [2], besides using "gwtdev" profile for debugging, it can also be used for GWT compilation (i.e. "make install-dev") - in this case, resulting JavaScript will be un-obfuscated and not-too-optimized in order to easily profile the JavaScript application in the browser. In other words, using "gwtdev" for GWT compilation has nothing to do with debugging, maybe we should create separate profile for this purpose. [2] http://www.ovirt.org/DebugFrontend#Compiling_Frontend_applications_in_detail... PS: I'll update http://www.ovirt.org/DebugFrontend with regard to standard development environment, as described in README.developer Vojtech ----- Original Message -----
From: "Alon Bar-Lev" <alonbl@redhat.com> To: awels@redhat.com Cc: engine-devel@ovirt.org Sent: Friday, June 7, 2013 10:07:40 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
----- Original Message -----
From: "Alexander Wels" <awels@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: engine-devel@ovirt.org, "bigclouds" <bigclouds@163.com> Sent: Friday, June 7, 2013 10:56:40 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
So if I understand correctly, the following is sequence is required:
Build and deploy code: $ make install-dev PREFIX="${HOME}/ovirt-engine" $ "${HOME}/ovirt-engine/share/ovirt-engine/services/ovirt-engine.py" start
You missed this part: 1. cd into the source code directory of either webadmin or user portal. you have to change directory to either frontend/webadmin/modules/webadmin or frontend/webadmin/modules/userportal-gwtp
As the maven gwt plugin is only defined in the webadmin and userportal poms and not in the root pom.
It doesn't make much sense to put the gwt plugin in the root pom, as the root pom has nothing to do with GWT. The plugin exists in userportal and webadmin as those are GWT modules. The debugger is specifically a GWT debugger, you can't debug anything else with it.
You perceive this as something of gwt project, while I perceive this part of the environment.
What I expect it to allow as simple development environment as we can. Just like I enable the debug port of jboss automatically I would like to enable gwt debug.
If I add "-P gwtdev" to default build using install-dev, all gwt applications should be built and installed using the extra debugging information, using:
$ make install-dev PREFIX="${HOME}/ovirt-engine"
I can even add GWT_DEBUGGER=1 to optionally enable/disable this feature.
Now, after starting ovirt-engine service, all I expect is a simple command to start the gwt debugger.
$ make gwt-debugger or: ./gwt-debugger
The fact that maven is used to start the debugger is not important.
What I do expect is that the debugger not to require a specific relation with specific application (Webadmin, userportal).
I would have understood if I had to execute something like the following to run the debugger:
$ cd frontend $ mvn gwt:debug -Dgwt.noserver=true
Or better to avoid building anything:
$ cd frontend/debugger $ mvn gwt:debug -Dgwt.noserver=true
But I do not understand why a cd to specific application is required.
Thanks! Alon _______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

----- Original Message -----
From: "Vojtech Szocs" <vszocs@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: awels@redhat.com, engine-devel@ovirt.org Sent: Tuesday, June 18, 2013 2:01:01 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
Hi Alon,
revisiting this thread, I have some comments regarding GWT debugging via standard development environment, as described in README.developer.
Thank you for your comments! As the file is within git, you can submit a patch... :) I will create one for the following comments.
- README.developer says: For example, if your machine is low on memory, use: EXTRA_BUILD_FLAGS_DEV="-Dgwt-plugin.localWorkers=2" however this should be: For example, if your machine is low on memory, use: EXTRA_BUILD_FLAGS_DEV="-Dgwt.compiler.localWorkers=2"
Fixed.
- README.developer says: By default, only the gecko1_8 support is built I'd rather explain what this means: By default, only the gecko1_8 (Mozilla Firefox) support is built
Fixed.
- what's the point of having EXTRA_BUILD_FLAGS_DEV_GWT vs. EXTRA_BUILD_FLAGS_DEV ?
I wanted to allow customization of GWT as standalone as it require more flags and defaults. So I can put the following with a default for gwt while allowing application customization. For example if I have: EXTRA_BUILD_FLAGS_DEV_GWT:=-D gwt.userAgent=gecko1_8 and execute: $ make EXTRA_BUILD_FLAGS_DEV="-DskipTests" I do not override the GWT settings. BTW: there is a pending patch to rename this to DEV_XXXX[1] to be more consistent. [1] http://gerrit.ovirt.org/#/c/15735/
if EXTRA_BUILD_FLAGS_DEV_GWT is meant to control target browser(s) then it should be renamed appropriately
Any flags, including debug port and such. But I am opened to suggestions... what do you expect it to be named?
if EXTRA_BUILD_FLAGS_DEV_GWT is meant to group all GWT-specific flags, README.developer shouldn't advise to do EXTRA_BUILD_FLAGS_DEV="-Dgwt..."
But then I lose the gwt settings.
- Makefile gwt-debug target looks OK to me
What I do expect is that the debugger not to require a specific relation with specific application (Webadmin, userportal).
gwt-maven-plugin must be invoked in context of a specific Maven module representing GWT application you want to debug. In other words, you need to start GWT Development Mode for specific application module. This is why you need to "cd" to specific directory (webadmin/userportal-gwtp) before invoking "mvn ... gwt:debug" command.
You cannot start GWT Development Mode in a generic (application-agnostic) way and *then* connect to it from browser and Java IDE, this is not how GWT Development Mode is meant to be used. JBoss remote socket debugging and GWT application debugging are two different things.
Well, I do expect this to be a feature of top level pom.xml... something like: $ mvn -Pgwt-debug -Ddebug.module=webadmin so that the profile will do whatever necessary to activate the debugger.
The fact that maven is used to start the debugger is not important.
gwt-maven-plugin is just a wrapper to invoke GWT Development Mode (Java class). Regardless of how you start GWT Development Mode, you need to specify which application (more precisely, GWT modules) you want to debug right when starting GWT Development Mode. See [1] - "module(s)" are always specific for given application.
So basically what you saying is that you cannot debug two modules at one time... It is strange... but as long as you fine with it, we are OK.
[1] https://developers.google.com/web-toolkit/doc/latest/DevGuideCompilingAndDeb...
If I add "-P gwtdev" to default build using install-dev, all gwt applications should be built and installed using the extra debugging information, using:
Yes, as described in [2], besides using "gwtdev" profile for debugging, it can also be used for GWT compilation (i.e. "make install-dev") - in this case, resulting JavaScript will be un-obfuscated and not-too-optimized in order to easily profile the JavaScript application in the browser. In other words, using "gwtdev" for GWT compilation has nothing to do with debugging, maybe we should create separate profile for this purpose.
That's good.
[2] http://www.ovirt.org/DebugFrontend#Compiling_Frontend_applications_in_detail...
PS: I'll update http://www.ovirt.org/DebugFrontend with regard to standard development environment, as described in README.developer
Vojtech
----- Original Message -----
From: "Alon Bar-Lev" <alonbl@redhat.com> To: awels@redhat.com Cc: engine-devel@ovirt.org Sent: Friday, June 7, 2013 10:07:40 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
----- Original Message -----
From: "Alexander Wels" <awels@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: engine-devel@ovirt.org, "bigclouds" <bigclouds@163.com> Sent: Friday, June 7, 2013 10:56:40 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
So if I understand correctly, the following is sequence is required:
Build and deploy code: $ make install-dev PREFIX="${HOME}/ovirt-engine" $ "${HOME}/ovirt-engine/share/ovirt-engine/services/ovirt-engine.py" start
You missed this part: 1. cd into the source code directory of either webadmin or user portal. you have to change directory to either frontend/webadmin/modules/webadmin or frontend/webadmin/modules/userportal-gwtp
As the maven gwt plugin is only defined in the webadmin and userportal poms and not in the root pom.
It doesn't make much sense to put the gwt plugin in the root pom, as the root pom has nothing to do with GWT. The plugin exists in userportal and webadmin as those are GWT modules. The debugger is specifically a GWT debugger, you can't debug anything else with it.
You perceive this as something of gwt project, while I perceive this part of the environment.
What I expect it to allow as simple development environment as we can. Just like I enable the debug port of jboss automatically I would like to enable gwt debug.
If I add "-P gwtdev" to default build using install-dev, all gwt applications should be built and installed using the extra debugging information, using:
$ make install-dev PREFIX="${HOME}/ovirt-engine"
I can even add GWT_DEBUGGER=1 to optionally enable/disable this feature.
Now, after starting ovirt-engine service, all I expect is a simple command to start the gwt debugger.
$ make gwt-debugger or: ./gwt-debugger
The fact that maven is used to start the debugger is not important.
What I do expect is that the debugger not to require a specific relation with specific application (Webadmin, userportal).
I would have understood if I had to execute something like the following to run the debugger:
$ cd frontend $ mvn gwt:debug -Dgwt.noserver=true
Or better to avoid building anything:
$ cd frontend/debugger $ mvn gwt:debug -Dgwt.noserver=true
But I do not understand why a cd to specific application is required.
Thanks! Alon _______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

----- Original Message -----
From: "Alon Bar-Lev" <alonbl@redhat.com> To: "Vojtech Szocs" <vszocs@redhat.com> Cc: awels@redhat.com, engine-devel@ovirt.org Sent: Tuesday, June 18, 2013 1:32:52 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
----- Original Message -----
From: "Vojtech Szocs" <vszocs@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: awels@redhat.com, engine-devel@ovirt.org Sent: Tuesday, June 18, 2013 2:01:01 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
Hi Alon,
revisiting this thread, I have some comments regarding GWT debugging via standard development environment, as described in README.developer.
Thank you for your comments! As the file is within git, you can submit a patch... :) I will create one for the following comments.
Thanks! I +2'ed your patch [http://gerrit.ovirt.org/#/c/15827/]
- README.developer says: For example, if your machine is low on memory, use: EXTRA_BUILD_FLAGS_DEV="-Dgwt-plugin.localWorkers=2" however this should be: For example, if your machine is low on memory, use: EXTRA_BUILD_FLAGS_DEV="-Dgwt.compiler.localWorkers=2"
Fixed.
- README.developer says: By default, only the gecko1_8 support is built I'd rather explain what this means: By default, only the gecko1_8 (Mozilla Firefox) support is built
Fixed.
- what's the point of having EXTRA_BUILD_FLAGS_DEV_GWT vs. EXTRA_BUILD_FLAGS_DEV ?
I wanted to allow customization of GWT as standalone as it require more flags and defaults.
So I can put the following with a default for gwt while allowing application customization.
For example if I have: EXTRA_BUILD_FLAGS_DEV_GWT:=-D gwt.userAgent=gecko1_8
and execute: $ make EXTRA_BUILD_FLAGS_DEV="-DskipTests"
I do not override the GWT settings.
I see, so developer should only use EXTRA_BUILD_FLAGS_DEV to provide any additional settings (or override existing settings), i.e. both GWT and non-GWT settings can be customized via EXTRA_BUILD_FLAGS_DEV. If I understand correctly, EXTRA_BUILD_FLAGS_DEV_GWT is used internally for: - setting default target browser to Firefox (only) - enabling draft compile (if DEV_BUILD_GWT_DRAFT == 1) We can consider renaming EXTRA_BUILD_FLAGS_DEV_GWT -> EXTRA_BUILD_FLAGS_DEV_GWT_DEFAULTS. But in any case, I suggest to apply EXTRA_BUILD_FLAGS_DEV_GWT *before* EXTRA_BUILD_FLAGS_DEV (instead of the opposite like today). This way, EXTRA_BUILD_FLAGS_DEV can be used to override any settings set by EXTRA_BUILD_FLAGS_DEV_GWT. For example: $(MVN) \ $(EXTRA_BUILD_FLAGS_DEV_GWT) \ --> GWT-specific defaults $(EXTRA_BUILD_FLAGS_DEV) \ --> generic overrides (both GWT and non-GWT) ... install \ EXTRA_BUILD_FLAGS="$(EXTRA_BUILD_FLAGS_DEV_GWT) $(EXTRA_BUILD_FLAGS_DEV)" \ --> this one is OK Let me know what you think about this.
BTW: there is a pending patch to rename this to DEV_XXXX[1] to be more consistent.
+1'ed this patch.
if EXTRA_BUILD_FLAGS_DEV_GWT is meant to control target browser(s) then it should be renamed appropriately
Any flags, including debug port and such. But I am opened to suggestions... what do you expect it to be named?
if EXTRA_BUILD_FLAGS_DEV_GWT is meant to group all GWT-specific flags, README.developer shouldn't advise to do EXTRA_BUILD_FLAGS_DEV="-Dgwt..."
But then I lose the gwt settings.
Right, please see my suggestion above.
- Makefile gwt-debug target looks OK to me
What I do expect is that the debugger not to require a specific relation with specific application (Webadmin, userportal).
gwt-maven-plugin must be invoked in context of a specific Maven module representing GWT application you want to debug. In other words, you need to start GWT Development Mode for specific application module. This is why you need to "cd" to specific directory (webadmin/userportal-gwtp) before invoking "mvn ... gwt:debug" command.
You cannot start GWT Development Mode in a generic (application-agnostic) way and *then* connect to it from browser and Java IDE, this is not how GWT Development Mode is meant to be used. JBoss remote socket debugging and GWT application debugging are two different things.
Well, I do expect this to be a feature of top level pom.xml...
something like: $ mvn -Pgwt-debug -Ddebug.module=webadmin
so that the profile will do whatever necessary to activate the debugger.
This would be problematic because when you invoke Maven on root pom, Maven only sees root pom classpath/artifacts, and we need Maven/GWT-Plugin to see application-specific classpath/artifacts. I'm not saying this is impossible, I'm just saying it will be much harder to do than just "cd" to webadmin/userportal-gwtp directory and invoking Maven there.. We could introduce new flags like DEBUG_GWT_WEBADMIN [0/1] which would take care of providing correct settings to gwt-maven-plugin, not sure if it's really worth it, because we already have DEBUG_MODULE and Makefile internally cd's to it.
The fact that maven is used to start the debugger is not important.
gwt-maven-plugin is just a wrapper to invoke GWT Development Mode (Java class). Regardless of how you start GWT Development Mode, you need to specify which application (more precisely, GWT modules) you want to debug right when starting GWT Development Mode. See [1] - "module(s)" are always specific for given application.
So basically what you saying is that you cannot debug two modules at one time... It is strange... but as long as you fine with it, we are OK.
Yes, basically you need to specify all "modules" that make up for one application at time when you start GWT Development Mode. So GWT Development Mode, once started, is tied to specific application.
[1] https://developers.google.com/web-toolkit/doc/latest/DevGuideCompilingAndDeb...
If I add "-P gwtdev" to default build using install-dev, all gwt applications should be built and installed using the extra debugging information, using:
Yes, as described in [2], besides using "gwtdev" profile for debugging, it can also be used for GWT compilation (i.e. "make install-dev") - in this case, resulting JavaScript will be un-obfuscated and not-too-optimized in order to easily profile the JavaScript application in the browser. In other words, using "gwtdev" for GWT compilation has nothing to do with debugging, maybe we should create separate profile for this purpose.
That's good.
OK, I'll make a patch to introduce "gwtdraft" profile with following effects once activated (via -Pgwtdraft): - set draftCompile to true -> prevent JavaScript code optimizations - set style to DETAILED -> produce pretty JavaScript without obfuscation After this, I suggest to modify Makefile so that DEV_BUILD_GWT_DRAFT=1 activates "gwtdraft" profile, instead of just doing -Dgwt.draftCompile=true
[2] http://www.ovirt.org/DebugFrontend#Compiling_Frontend_applications_in_detail...
PS: I'll update http://www.ovirt.org/DebugFrontend with regard to standard development environment, as described in README.developer
Vojtech
----- Original Message -----
From: "Alon Bar-Lev" <alonbl@redhat.com> To: awels@redhat.com Cc: engine-devel@ovirt.org Sent: Friday, June 7, 2013 10:07:40 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
----- Original Message -----
From: "Alexander Wels" <awels@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: engine-devel@ovirt.org, "bigclouds" <bigclouds@163.com> Sent: Friday, June 7, 2013 10:56:40 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
> So if I understand correctly, the following is sequence is > required: > > Build and deploy code: > $ make install-dev PREFIX="${HOME}/ovirt-engine" > $ > "${HOME}/ovirt-engine/share/ovirt-engine/services/ovirt-engine.py" > start
You missed this part: 1. cd into the source code directory of either webadmin or user portal. you have to change directory to either frontend/webadmin/modules/webadmin or frontend/webadmin/modules/userportal-gwtp
As the maven gwt plugin is only defined in the webadmin and userportal poms and not in the root pom.
It doesn't make much sense to put the gwt plugin in the root pom, as the root pom has nothing to do with GWT. The plugin exists in userportal and webadmin as those are GWT modules. The debugger is specifically a GWT debugger, you can't debug anything else with it.
You perceive this as something of gwt project, while I perceive this part of the environment.
What I expect it to allow as simple development environment as we can. Just like I enable the debug port of jboss automatically I would like to enable gwt debug.
If I add "-P gwtdev" to default build using install-dev, all gwt applications should be built and installed using the extra debugging information, using:
$ make install-dev PREFIX="${HOME}/ovirt-engine"
I can even add GWT_DEBUGGER=1 to optionally enable/disable this feature.
Now, after starting ovirt-engine service, all I expect is a simple command to start the gwt debugger.
$ make gwt-debugger or: ./gwt-debugger
The fact that maven is used to start the debugger is not important.
What I do expect is that the debugger not to require a specific relation with specific application (Webadmin, userportal).
I would have understood if I had to execute something like the following to run the debugger:
$ cd frontend $ mvn gwt:debug -Dgwt.noserver=true
Or better to avoid building anything:
$ cd frontend/debugger $ mvn gwt:debug -Dgwt.noserver=true
But I do not understand why a cd to specific application is required.
Thanks! Alon _______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

----- Original Message -----
From: "Vojtech Szocs" <vszocs@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: awels@redhat.com, engine-devel@ovirt.org Sent: Tuesday, June 18, 2013 4:16:25 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
----- Original Message -----
From: "Alon Bar-Lev" <alonbl@redhat.com> To: "Vojtech Szocs" <vszocs@redhat.com> Cc: awels@redhat.com, engine-devel@ovirt.org Sent: Tuesday, June 18, 2013 1:32:52 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
----- Original Message -----
From: "Vojtech Szocs" <vszocs@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: awels@redhat.com, engine-devel@ovirt.org Sent: Tuesday, June 18, 2013 2:01:01 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
Hi Alon,
revisiting this thread, I have some comments regarding GWT debugging via standard development environment, as described in README.developer.
Thank you for your comments! As the file is within git, you can submit a patch... :) I will create one for the following comments.
Thanks! I +2'ed your patch [http://gerrit.ovirt.org/#/c/15827/]
- README.developer says: For example, if your machine is low on memory, use: EXTRA_BUILD_FLAGS_DEV="-Dgwt-plugin.localWorkers=2" however this should be: For example, if your machine is low on memory, use: EXTRA_BUILD_FLAGS_DEV="-Dgwt.compiler.localWorkers=2"
Fixed.
- README.developer says: By default, only the gecko1_8 support is built I'd rather explain what this means: By default, only the gecko1_8 (Mozilla Firefox) support is built
Fixed.
- what's the point of having EXTRA_BUILD_FLAGS_DEV_GWT vs. EXTRA_BUILD_FLAGS_DEV ?
I wanted to allow customization of GWT as standalone as it require more flags and defaults.
So I can put the following with a default for gwt while allowing application customization.
For example if I have: EXTRA_BUILD_FLAGS_DEV_GWT:=-D gwt.userAgent=gecko1_8
and execute: $ make EXTRA_BUILD_FLAGS_DEV="-DskipTests"
I do not override the GWT settings.
I see, so developer should only use EXTRA_BUILD_FLAGS_DEV to provide any additional settings (or override existing settings), i.e. both GWT and non-GWT settings can be customized via EXTRA_BUILD_FLAGS_DEV.
If I understand correctly, EXTRA_BUILD_FLAGS_DEV_GWT is used internally for: - setting default target browser to Firefox (only)
Right.
- enabling draft compile (if DEV_BUILD_GWT_DRAFT == 1)
I am going to change that[1] [1] http://gerrit.ovirt.org/#/c/15736/
We can consider renaming EXTRA_BUILD_FLAGS_DEV_GWT -> EXTRA_BUILD_FLAGS_DEV_GWT_DEFAULTS.
OK, will do.
But in any case, I suggest to apply EXTRA_BUILD_FLAGS_DEV_GWT *before* EXTRA_BUILD_FLAGS_DEV (instead of the opposite like today). This way, EXTRA_BUILD_FLAGS_DEV can be used to override any settings set by EXTRA_BUILD_FLAGS_DEV_GWT.
For example:
$(MVN) \ $(EXTRA_BUILD_FLAGS_DEV_GWT) \ --> GWT-specific defaults $(EXTRA_BUILD_FLAGS_DEV) \ --> generic overrides (both GWT and non-GWT) ...
install \ EXTRA_BUILD_FLAGS="$(EXTRA_BUILD_FLAGS_DEV_GWT) $(EXTRA_BUILD_FLAGS_DEV)" \ --> this one is OK
Let me know what you think about this.
Good for me.
BTW: there is a pending patch to rename this to DEV_XXXX[1] to be more consistent.
+1'ed this patch.
if EXTRA_BUILD_FLAGS_DEV_GWT is meant to control target browser(s) then it should be renamed appropriately
Any flags, including debug port and such. But I am opened to suggestions... what do you expect it to be named?
if EXTRA_BUILD_FLAGS_DEV_GWT is meant to group all GWT-specific flags, README.developer shouldn't advise to do EXTRA_BUILD_FLAGS_DEV="-Dgwt..."
But then I lose the gwt settings.
Right, please see my suggestion above.
- Makefile gwt-debug target looks OK to me
What I do expect is that the debugger not to require a specific relation with specific application (Webadmin, userportal).
gwt-maven-plugin must be invoked in context of a specific Maven module representing GWT application you want to debug. In other words, you need to start GWT Development Mode for specific application module. This is why you need to "cd" to specific directory (webadmin/userportal-gwtp) before invoking "mvn ... gwt:debug" command.
You cannot start GWT Development Mode in a generic (application-agnostic) way and *then* connect to it from browser and Java IDE, this is not how GWT Development Mode is meant to be used. JBoss remote socket debugging and GWT application debugging are two different things.
Well, I do expect this to be a feature of top level pom.xml...
something like: $ mvn -Pgwt-debug -Ddebug.module=webadmin
so that the profile will do whatever necessary to activate the debugger.
This would be problematic because when you invoke Maven on root pom, Maven only sees root pom classpath/artifacts, and we need Maven/GWT-Plugin to see application-specific classpath/artifacts.
I'm not saying this is impossible, I'm just saying it will be much harder to do than just "cd" to webadmin/userportal-gwtp directory and invoking Maven there.. We could introduce new flags like DEBUG_GWT_WEBADMIN [0/1] which would take care of providing correct settings to gwt-maven-plugin, not sure if it's really worth it, because we already have DEBUG_MODULE and Makefile internally cd's to it.
OK, this issue is not that important now... :)
The fact that maven is used to start the debugger is not important.
gwt-maven-plugin is just a wrapper to invoke GWT Development Mode (Java class). Regardless of how you start GWT Development Mode, you need to specify which application (more precisely, GWT modules) you want to debug right when starting GWT Development Mode. See [1] - "module(s)" are always specific for given application.
So basically what you saying is that you cannot debug two modules at one time... It is strange... but as long as you fine with it, we are OK.
Yes, basically you need to specify all "modules" that make up for one application at time when you start GWT Development Mode. So GWT Development Mode, once started, is tied to specific application.
[1] https://developers.google.com/web-toolkit/doc/latest/DevGuideCompilingAndDeb...
If I add "-P gwtdev" to default build using install-dev, all gwt applications should be built and installed using the extra debugging information, using:
Yes, as described in [2], besides using "gwtdev" profile for debugging, it can also be used for GWT compilation (i.e. "make install-dev") - in this case, resulting JavaScript will be un-obfuscated and not-too-optimized in order to easily profile the JavaScript application in the browser. In other words, using "gwtdev" for GWT compilation has nothing to do with debugging, maybe we should create separate profile for this purpose.
That's good.
OK, I'll make a patch to introduce "gwtdraft" profile with following effects once activated (via -Pgwtdraft): - set draftCompile to true -> prevent JavaScript code optimizations - set style to DETAILED -> produce pretty JavaScript without obfuscation
After this, I suggest to modify Makefile so that DEV_BUILD_GWT_DRAFT=1 activates "gwtdraft" profile, instead of just doing -Dgwt.draftCompile=true
[2] http://www.ovirt.org/DebugFrontend#Compiling_Frontend_applications_in_detail...
PS: I'll update http://www.ovirt.org/DebugFrontend with regard to standard development environment, as described in README.developer
Vojtech
----- Original Message -----
From: "Alon Bar-Lev" <alonbl@redhat.com> To: awels@redhat.com Cc: engine-devel@ovirt.org Sent: Friday, June 7, 2013 10:07:40 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
----- Original Message -----
From: "Alexander Wels" <awels@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: engine-devel@ovirt.org, "bigclouds" <bigclouds@163.com> Sent: Friday, June 7, 2013 10:56:40 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
> > So if I understand correctly, the following is sequence is > > required: > > > > Build and deploy code: > > $ make install-dev PREFIX="${HOME}/ovirt-engine" > > $ > > "${HOME}/ovirt-engine/share/ovirt-engine/services/ovirt-engine.py" > > start > > You missed this part: > 1. cd into the source code directory of either webadmin or user > portal. > you have to change directory to either > frontend/webadmin/modules/webadmin > or frontend/webadmin/modules/userportal-gwtp > > As the maven gwt plugin is only defined in the webadmin and > userportal > poms > and > not in the root pom.
It doesn't make much sense to put the gwt plugin in the root pom, as the root pom has nothing to do with GWT. The plugin exists in userportal and webadmin as those are GWT modules. The debugger is specifically a GWT debugger, you can't debug anything else with it.
You perceive this as something of gwt project, while I perceive this part of the environment.
What I expect it to allow as simple development environment as we can. Just like I enable the debug port of jboss automatically I would like to enable gwt debug.
If I add "-P gwtdev" to default build using install-dev, all gwt applications should be built and installed using the extra debugging information, using:
$ make install-dev PREFIX="${HOME}/ovirt-engine"
I can even add GWT_DEBUGGER=1 to optionally enable/disable this feature.
Now, after starting ovirt-engine service, all I expect is a simple command to start the gwt debugger.
$ make gwt-debugger or: ./gwt-debugger
The fact that maven is used to start the debugger is not important.
What I do expect is that the debugger not to require a specific relation with specific application (Webadmin, userportal).
I would have understood if I had to execute something like the following to run the debugger:
$ cd frontend $ mvn gwt:debug -Dgwt.noserver=true
Or better to avoid building anything:
$ cd frontend/debugger $ mvn gwt:debug -Dgwt.noserver=true
But I do not understand why a cd to specific application is required.
Thanks! Alon _______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

----- Original Message -----
From: "Alon Bar-Lev" <alonbl@redhat.com> To: "Vojtech Szocs" <vszocs@redhat.com> Cc: awels@redhat.com, engine-devel@ovirt.org Sent: Tuesday, June 18, 2013 4:56:49 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
----- Original Message -----
From: "Vojtech Szocs" <vszocs@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: awels@redhat.com, engine-devel@ovirt.org Sent: Tuesday, June 18, 2013 4:16:25 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
----- Original Message -----
From: "Alon Bar-Lev" <alonbl@redhat.com> To: "Vojtech Szocs" <vszocs@redhat.com> Cc: awels@redhat.com, engine-devel@ovirt.org Sent: Tuesday, June 18, 2013 1:32:52 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
----- Original Message -----
From: "Vojtech Szocs" <vszocs@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: awels@redhat.com, engine-devel@ovirt.org Sent: Tuesday, June 18, 2013 2:01:01 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
Hi Alon,
revisiting this thread, I have some comments regarding GWT debugging via standard development environment, as described in README.developer.
Thank you for your comments! As the file is within git, you can submit a patch... :) I will create one for the following comments.
Thanks! I +2'ed your patch [http://gerrit.ovirt.org/#/c/15827/]
- README.developer says: For example, if your machine is low on memory, use: EXTRA_BUILD_FLAGS_DEV="-Dgwt-plugin.localWorkers=2" however this should be: For example, if your machine is low on memory, use: EXTRA_BUILD_FLAGS_DEV="-Dgwt.compiler.localWorkers=2"
Fixed.
- README.developer says: By default, only the gecko1_8 support is built I'd rather explain what this means: By default, only the gecko1_8 (Mozilla Firefox) support is built
Fixed.
- what's the point of having EXTRA_BUILD_FLAGS_DEV_GWT vs. EXTRA_BUILD_FLAGS_DEV ?
I wanted to allow customization of GWT as standalone as it require more flags and defaults.
So I can put the following with a default for gwt while allowing application customization.
For example if I have: EXTRA_BUILD_FLAGS_DEV_GWT:=-D gwt.userAgent=gecko1_8
and execute: $ make EXTRA_BUILD_FLAGS_DEV="-DskipTests"
I do not override the GWT settings.
I see, so developer should only use EXTRA_BUILD_FLAGS_DEV to provide any additional settings (or override existing settings), i.e. both GWT and non-GWT settings can be customized via EXTRA_BUILD_FLAGS_DEV.
If I understand correctly, EXTRA_BUILD_FLAGS_DEV_GWT is used internally for: - setting default target browser to Firefox (only)
Right.
- enabling draft compile (if DEV_BUILD_GWT_DRAFT == 1)
I am going to change that[1]
[1] http://gerrit.ovirt.org/#/c/15736/
We can consider renaming EXTRA_BUILD_FLAGS_DEV_GWT -> EXTRA_BUILD_FLAGS_DEV_GWT_DEFAULTS.
OK, will do.
But in any case, I suggest to apply EXTRA_BUILD_FLAGS_DEV_GWT *before* EXTRA_BUILD_FLAGS_DEV (instead of the opposite like today). This way, EXTRA_BUILD_FLAGS_DEV can be used to override any settings set by EXTRA_BUILD_FLAGS_DEV_GWT.
For example:
$(MVN) \ $(EXTRA_BUILD_FLAGS_DEV_GWT) \ --> GWT-specific defaults $(EXTRA_BUILD_FLAGS_DEV) \ --> generic overrides (both GWT and non-GWT) ...
install \ EXTRA_BUILD_FLAGS="$(EXTRA_BUILD_FLAGS_DEV_GWT) $(EXTRA_BUILD_FLAGS_DEV)" \ --> this one is OK
Let me know what you think about this.
Good for me.
After http://gerrit.ovirt.org/#/c/15736/ gets merged, I can make a patch that modifies this: DEV_BUILD_FLAGS:=$(DEV_BUILD_FLAGS) $(DEV_EXTRA_BUILD_FLAGS) DEV_BUILD_FLAGS:=$(DEV_BUILD_FLAGS) $(DEV_EXTRA_BUILD_FLAGS_GWT) to this: DEV_BUILD_FLAGS:=$(DEV_BUILD_FLAGS) $(DEV_EXTRA_BUILD_FLAGS_GWT) DEV_BUILD_FLAGS:=$(DEV_BUILD_FLAGS) $(DEV_EXTRA_BUILD_FLAGS) otherwise, it looks good to me.
BTW: there is a pending patch to rename this to DEV_XXXX[1] to be more consistent.
+1'ed this patch.
if EXTRA_BUILD_FLAGS_DEV_GWT is meant to control target browser(s) then it should be renamed appropriately
Any flags, including debug port and such. But I am opened to suggestions... what do you expect it to be named?
if EXTRA_BUILD_FLAGS_DEV_GWT is meant to group all GWT-specific flags, README.developer shouldn't advise to do EXTRA_BUILD_FLAGS_DEV="-Dgwt..."
But then I lose the gwt settings.
Right, please see my suggestion above.
- Makefile gwt-debug target looks OK to me
What I do expect is that the debugger not to require a specific relation with specific application (Webadmin, userportal).
gwt-maven-plugin must be invoked in context of a specific Maven module representing GWT application you want to debug. In other words, you need to start GWT Development Mode for specific application module. This is why you need to "cd" to specific directory (webadmin/userportal-gwtp) before invoking "mvn ... gwt:debug" command.
You cannot start GWT Development Mode in a generic (application-agnostic) way and *then* connect to it from browser and Java IDE, this is not how GWT Development Mode is meant to be used. JBoss remote socket debugging and GWT application debugging are two different things.
Well, I do expect this to be a feature of top level pom.xml...
something like: $ mvn -Pgwt-debug -Ddebug.module=webadmin
so that the profile will do whatever necessary to activate the debugger.
This would be problematic because when you invoke Maven on root pom, Maven only sees root pom classpath/artifacts, and we need Maven/GWT-Plugin to see application-specific classpath/artifacts.
I'm not saying this is impossible, I'm just saying it will be much harder to do than just "cd" to webadmin/userportal-gwtp directory and invoking Maven there.. We could introduce new flags like DEBUG_GWT_WEBADMIN [0/1] which would take care of providing correct settings to gwt-maven-plugin, not sure if it's really worth it, because we already have DEBUG_MODULE and Makefile internally cd's to it.
OK, this issue is not that important now... :)
The fact that maven is used to start the debugger is not important.
gwt-maven-plugin is just a wrapper to invoke GWT Development Mode (Java class). Regardless of how you start GWT Development Mode, you need to specify which application (more precisely, GWT modules) you want to debug right when starting GWT Development Mode. See [1] - "module(s)" are always specific for given application.
So basically what you saying is that you cannot debug two modules at one time... It is strange... but as long as you fine with it, we are OK.
Yes, basically you need to specify all "modules" that make up for one application at time when you start GWT Development Mode. So GWT Development Mode, once started, is tied to specific application.
[1] https://developers.google.com/web-toolkit/doc/latest/DevGuideCompilingAndDeb...
If I add "-P gwtdev" to default build using install-dev, all gwt applications should be built and installed using the extra debugging information, using:
Yes, as described in [2], besides using "gwtdev" profile for debugging, it can also be used for GWT compilation (i.e. "make install-dev") - in this case, resulting JavaScript will be un-obfuscated and not-too-optimized in order to easily profile the JavaScript application in the browser. In other words, using "gwtdev" for GWT compilation has nothing to do with debugging, maybe we should create separate profile for this purpose.
That's good.
OK, I'll make a patch to introduce "gwtdraft" profile with following effects once activated (via -Pgwtdraft): - set draftCompile to true -> prevent JavaScript code optimizations - set style to DETAILED -> produce pretty JavaScript without obfuscation
After this, I suggest to modify Makefile so that DEV_BUILD_GWT_DRAFT=1 activates "gwtdraft" profile, instead of just doing -Dgwt.draftCompile=true
[2] http://www.ovirt.org/DebugFrontend#Compiling_Frontend_applications_in_detail...
PS: I'll update http://www.ovirt.org/DebugFrontend with regard to standard development environment, as described in README.developer
Vojtech
----- Original Message -----
From: "Alon Bar-Lev" <alonbl@redhat.com> To: awels@redhat.com Cc: engine-devel@ovirt.org Sent: Friday, June 7, 2013 10:07:40 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
----- Original Message -----
From: "Alexander Wels" <awels@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: engine-devel@ovirt.org, "bigclouds" <bigclouds@163.com> Sent: Friday, June 7, 2013 10:56:40 PM Subject: Re: [Engine-devel] if there is a updated debug environment how to?
> > > So if I understand correctly, the following is sequence is > > > required: > > > > > > Build and deploy code: > > > $ make install-dev PREFIX="${HOME}/ovirt-engine" > > > $ > > > "${HOME}/ovirt-engine/share/ovirt-engine/services/ovirt-engine.py" > > > start > > > > You missed this part: > > 1. cd into the source code directory of either webadmin or user > > portal. > > you have to change directory to either > > frontend/webadmin/modules/webadmin > > or frontend/webadmin/modules/userportal-gwtp > > > > As the maven gwt plugin is only defined in the webadmin and > > userportal > > poms > > and > > not in the root pom. >
It doesn't make much sense to put the gwt plugin in the root pom, as the root pom has nothing to do with GWT. The plugin exists in userportal and webadmin as those are GWT modules. The debugger is specifically a GWT debugger, you can't debug anything else with it.
You perceive this as something of gwt project, while I perceive this part of the environment.
What I expect it to allow as simple development environment as we can. Just like I enable the debug port of jboss automatically I would like to enable gwt debug.
If I add "-P gwtdev" to default build using install-dev, all gwt applications should be built and installed using the extra debugging information, using:
$ make install-dev PREFIX="${HOME}/ovirt-engine"
I can even add GWT_DEBUGGER=1 to optionally enable/disable this feature.
Now, after starting ovirt-engine service, all I expect is a simple command to start the gwt debugger.
$ make gwt-debugger or: ./gwt-debugger
The fact that maven is used to start the debugger is not important.
What I do expect is that the debugger not to require a specific relation with specific application (Webadmin, userportal).
I would have understood if I had to execute something like the following to run the debugger:
$ cd frontend $ mvn gwt:debug -Dgwt.noserver=true
Or better to avoid building anything:
$ cd frontend/debugger $ mvn gwt:debug -Dgwt.noserver=true
But I do not understand why a cd to specific application is required.
Thanks! Alon _______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
participants (5)
-
Alexander Wels
-
Alon Bar-Lev
-
bigclouds
-
Eli Mesika
-
Vojtech Szocs