OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Is there a Chrome Devtools Protocol API to list off all Runtime.ScriptIds?

  • Thread starter Thread starter DaMaxContent
  • Start date Start date
D

DaMaxContent

Guest
I'm trying to write a script that will dump all instances of a specific function signature in node.js's internal modules. Specifically, I'm trying to dump the locations of the internalBinding function call.

Basically, I'm try to replicate devtools > ctrl+shift+f > "internalBinding" from an automation.

I know that you get script sources using Debugger.getScriptSource(), but it requires a Runtime.ScriptId.

Is there a CDP API for getting all script ids?

<p>I'm trying to write a script that will dump all instances of a specific function signature in node.js's internal modules. Specifically, I'm trying to dump the locations of the <code>internalBinding</code> function call.</p>
<p>Basically, I'm try to replicate devtools > ctrl+shift+f > "internalBinding" from an automation.</p>
<p>I know that you get script sources using <a href="https://chromedevtools.github.io/devtools-protocol/v8/Debugger/#method-getScriptSource" rel="nofollow noreferrer">Debugger.getScriptSource(), but it requires a Runtime.ScriptId</a>.</p>
<p>Is there a CDP API for getting all script ids?</p>
 

Latest posts

I
Replies
0
Views
1
impact christian
I
Top