'Can I pause a debugger at a stack overflow error?

is it possible to somehow pause a debugger the moment a stack overflow error appears?

When I try to attach the debugger to chrome and reproduce the causing situation, chrome just shows me the error but the debugger never pauses in this moment.

I now where the error appears but I need to see the state of a certain object right before this error, how can I achieve this?



Solution 1:[1]

If you know where the error happens call the debugger on the line before, check the values that you need and proceed to click on the 'next step' button of the debugger and keep checking the values until you get to the stack overflow.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Pablo Carrillo Alvarez