In the Firebug Javascript debug, how to display the current line of code?

Asked

Viewed 180 times

3

During the Javascript debug, while the execution is stopped, if I navigate to another file in the Firebug panel, I can’t get back to the line of code that will be executed next (marked in yellow).

If I use the commands "Step Into", "Step Over" or "Step Out", the panel immediately displays the next line, according to the command used, but then the line that was marked has already been executed.

The solution I found was, before I left the marked line, to put a breakpoint on it, and use the list of breakpoints to come back later.

It is possible to return to the current code line without giving any "Step" or using breakpoints?

2 answers

2

In my case, I can go back to the current point of the code by clicking on the last item of the main bar that is inside the "Script" tab. It usually shows the name of the function you are currently debugging. Ex:

inserir a descrição da imagem aqui

Works regardless of the file you are currently on.

  • This works if you switch from file to button that lists the loaded scripts, but if you click on some other file object in the console, that list of items goes missing. I don’t know if this is intentional, but only because I marked the other answer as sure: the Stack tab always displays this option, regardless of how you exchange file.

  • Good to know! I hadn’t tested it that way (I just switched files with the console). The Miguel Angelo option does not work for me, since "22 (line 1072)" is not appearing in my Firebug. I think it’s because I’m using Mac OS and there must be some difference between versions. Hugs!

1


Go to the Stack tab and click on the first item:

inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.