A little new to these jsp files .. I see a jsp file which has a variable .. I am trying to find out what the variable value is ,by logging it to the console .. Is there any easy way to. do this ..I tried exploring the options in here https://javabeat.net/how-to-debug-jsp/ But when i load the page which eventually calls this jsp ..its failing with 500 error.
Caused by: org.apache.sling.api.scripting.ScriptEvaluationException: org.apache.sling.scripting.jsp.jasper.JasperException: Unable to compile class for JSP: