javascript - How to debug an event listener in Firebug? -


I want to execute each code step in step by step after the debugger keyword in the firebug. Prevents the execution in the following example when the form is clicked due to the onclick feature in the debugger keyword. After this I click on in step in firebug, but instead of showing the jQuery code, it does not show anything ... how to stop the firebug on the jQuery code?

  & lt; Form method = "get" onclick = "debugger" & gt; & Lt; Input type = "text" name = "q" value = "" & gt; & Lt; Input type = "submit" value = "google search" & gt; & Lt; / Form & gt;  

jquery code:

  $ ('form'). Submit (function () {document.title = "How does this line show in debugger?"; Confirm return ('do you really want to do a Google search?'););  

For firebug

>
  • Click the dropdown for the script and select the script you need

    < Img src = "https://i.stack.imgur.com/yVieD.jpg" width = "300"

  • Add a breakpoint on the line that you started debugging

  • For Chrome

    1. Go to console
    2. Then on the source tab

    3. On the "Show Navigator" button Click


    Comments

    Popular posts from this blog

    java - org.apache.http.ProtocolException: Target host is not specified -

    java - Gradle dependencies: compile project by relative path -

    ruby on rails - Object doesn't support #inspect when used with .include -