'Сatch java script execution

Can you please tell me if it is possible to catch the Javascript code in Chromium?

I mean, for example, I press a button on the page and after pressing the button some script is executed - is it possible to catch the code of this script?

Perhaps this can be done either in Chromium itself or DevTools protocol ?



Sources

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

Source: Stack Overflow

Solution Source