I already know you can pause Javascript execution through the Chrome debugger console.
But is it possible to trigger this functionality via Javascript itself?
if (button_pressed)
{
console.pause_execution();
}
I ask because I am trying to create a custom Greasemonkey script for this purpose.