Problem remote dubugging javascript in a JSP

I have a problem with debugging a javascript in a JSP. I am using IntelliJ 8.1, tomcat, and a remote debug configuration.
I have a table with checkboxes and want to debug the javascript code activated when one of the checkboxes is selected. My javascript code looks as follows:

<script language="javascript">
    function checkboxChanged(index)


<td><input type="checkbox" name="check" onChange="checkboxChanged(<%=i%>)"> </td>

I put a breakpoint on the alert line. I start tomcat configuration which opens the JSP page as the launch page. I close the page, and start the remote javascript debug configuration. The breakpoint is hit (!). I hit F9 and the embedded browser opens. Then I select one of the checkboxes in the table. I get the alert, but the breakpoint is not hit! Any idea why this is happening?
Thanks in advance.

Please sign in to leave a comment.