2

I have some JavaScript functions like this:

function onSelectRow_${itemid}(){
   something;
}

This it is appearing like this in Firebug script tab:

function onSelectRow_87878(){
     something;
}

I put multiple break points (it has more than 20 lines, I put one in for example) in Firebug -> Script tab.

But the problem is, Firebug is not able to do debug these methods, ie. it is not stopping execution it executing as usual. I tried multiple times.

This is my actual code and use:

function onSelectRow_${escapedId }(rowId){
}
    

<jqgrid:grid onSelectRow="onSelectDeviceRow_${escapedId }"

What can I try to resolve it?

1
  • 3
    How are you generating these functions? And why? Commented Jan 23, 2014 at 5:29

1 Answer 1

5

You can use debugger

function onSelectRow_87878()
{
     debugger; //add here
     something;
}

When you open Firebug, enable Script,and it will automatically go to the debugger point

debugging in firefox

Sign up to request clarification or add additional context in comments.

1 Comment

This is going to be my best friend forever(Y)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.