Pause Scrape at Specific Points

The following script is only 1 line of code. You may be thinking "Why would this script deserve a place in the repository?" and I'd answer, "I'll show you."

This code is called the breakpoint. When a script is being developed it is common to run it from inside of screen-scraper. In fact, it is a best practice to run scraping sessions often to ensure that you are getting the results you want by checking the log. It is during development that you might want to consider using this script.

First create a new script and label it breakpoint.

Then add this single line of code to it.

 session.breakpoint();

Now, when you want to check which variables are in scope you can include this script to run after a pattern is matched. This will come in very handy when you want to see what is in a dataRecord and what is saved as a session variable.

Then when your testing is done simply disable the script from running by removing the check mark in the enabled box wherever you have placed this script.