Skip to content Skip to sidebar Skip to footer

Step Back To Previous Line In Script With Devtools Debugger

I am working with devtools debugger provided by google chrome. In terms of execution control, it allows you to add breakpoints anywhere in script and even allows you to attach brea

Solution 1:

Old question, but with "new" info:

Recently the Chrome DevTools got a boost, and now you can "restart" the function that you are debugging. This allows you to set a breakpoint in the previous line, so it looks like a "backwards" button. This can be done by right-clicking on the call stack and select the "Restart frame"

enter image description here

Even being an old question, I think this worths spreading.

I hope this is useful for someone.

Solution 2:

After you step over a function, the code in the function runs immediately. Although some debuggers can undo or save the stare before the function execution, currently, debuggers in browsers do not do this.

You can set a break point inside the function so you won't miss it by accident the next time it is called.

Solution 3:

Right click on previous any break point you will see some options select continue to here option (Orange highlighted).

Steps

Post a Comment for "Step Back To Previous Line In Script With Devtools Debugger"