Tuesday, March 29, 2016

Debugging JSP

We all know how to do debugging in javascript. Add a break point and reload the page. When the control comes to the break point, the debugger starts and you can continue to debug your application from there on.

What about JSP??

It is very simple :)

Add this word: 
 debugger  
before the line from where you wish to start the debugging.
Open the developer toolbar, usually opens by pressing F12 in your browser.
Once the control reaches this point, the current loaded request and page (VMXXX) will open in the sources tab and you can start debugging in JSP.

Happy coding :)

No comments:

Post a Comment