cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging with HTML

peter14
Advisor
Advisor
0 Kudos
219

Perhaps this is perfectly normal as its been a while since I played with web development but I will ask anyway:

Basically I have a REST servlet running using jersey and I have connected it to a simple SAPUI5 table. Now in debug mode I can modify the servlet (java) part and the server updates but this doesn't appear to be the case for the HTML (static) part. I want to avoid using JSP or servlets for the client rendering as I want a pure html2rest architecture.

Note I don't need to debug the html, I just want it to update as this slows down my development a little as I need to stop/start my server, re-authenticate etc.

thanks,

peter

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Peter,

Your observations are correct. Indeed, changes in the static content requires redeployment of the application and the debug mode does not help.

I recommend that you use the Local Test Server when you do frequent changes in the HTML code. Redeployment on the Local Test Server does not require restart - the turnaround time is much faster compared to the cloud where redeployment needs restart of the VM. However, it is still a redeployment and you app is restarted, the session is lost and you need to authenticate again.

Alternatively, you can use the web development tools in browser like Firefox and Chrome, which allows you to change the code of the displayed HTML page and see these changes instantly in the browser. When you are satisfied you can copy-paste the changes from the browser's dev tools back to Eclipse and do a real redeployment for validation.

Hope this helps,

Kaloyan

peter14
Advisor
Advisor
0 Kudos

Thanks, its what I thought I just wanted to check. If you have any references for using the browser as a debugger I will definitely try that out.

cheers,

peter

PS you guys are super fast.

Former Member
0 Kudos

I don't have much experience, but I briefly tried the built-in tools in Firefox and Chrome.

In Firefox: from the main menu > Web Developer > Inspect.

In Chrome: right-click on the page > Inspect element.

Additionally, you can try the Firebug add-on for Firefox.

You can also try looking for help in the SAPUI5 corner in the Dev Center: http://scn.sap.com/community/developer-center/front-end. There are the masters of HTML and JavaScript.

richard_hirsch
Active Contributor
0 Kudos

the turnaround time is much faster compared to the cloud where redeployment needs restart of the VM. However, it is still a redeployment and you app is restarted, the session is lost and you need to authenticate again.

isn't there a hot deploy in the cloud?

Does your comment mean that each app has its own separate VM?

D.

matt_steiner
Active Contributor
0 Kudos

isn't there a hot deploy in the cloud?

Not (yet).

Does your comment mean that each app has its own separate VM? 

Well, kind of... you can also deploy multiple apps into one VM by using the command line tool as explained here:

"If you want to deploy more than one Web application on the same VM, place all WAR files in the same folder and execute the deployment with this source."

Answers (0)