DebugPauseLogo

Debug Pause, pause your website within a single click!

This module serves the purpose of declaring debugger the same way as setting a breakpoint would but within a determined amount of time instead of manually having to go into the script file and having to find a place somewhere that you can insert the breakpoint.

For that problem, I have developed this module, which is an abstraction of the setTimeout function with declaring the debugger in your Dev tools console, nevermore! once you have this module in your toolbar.

I came to the conclusion that this module should be developed because it not only helps out people who are not aware that you can declare the debugger but also because I came across an issue with a co-worker when she was developing a dropdown menu that had classes be assigned to it when the mouse was hovering, there were a lot of issues to use the Inspect tool on the menu as she was using google chrome (it alters the default behaviour of the cursor). Once I came across this issue I found a forum post detailing that you could declare the debugger and that would pause all the execution of JS files on the webpage and if you set an amount of time before it is declared you can pause when the dropdown menu is open, and that allows you to inspect the elements!

But then, I noticed that this kind of issue could take a lot of time to solve, and also having to write stuff on the dev tools console is not that intuitive so I decided to develop this module, as an experiment to exercise my knowledge of Drupal development but also as a way to help people which may have been facing this issue!

How to use:
In order to use it, you need to have Dev Tools open in your browser otherwise it will not work.
Also, you can go into Configuration > Development > Debug Pause Settings to change the amount of time that it gives you until it pauses.

Demonstration:
Demo

Observations:
The module was developed using the Seven administration theme.
Also, bear in mind that the module is still in its development stage, so feel free to report the bugs and raise issues as well as feature requests when using the module.

Supporting organizations: 
Provided work environment and tools so that this issue was found while working with a colleague.
AttachmentSize
Demonstration991.43 KB

Project information

Releases