Debugger.searchInContent

Searches for given string in script content.

{
  "name": "searchInContent",
  "parameters": [
    {
      "name": "scriptId",
      "$ref": "Runtime.ScriptId",
      "description": "Id of the script to search in."
    },
    {
      "name": "query",
      "type": "string",
      "description": "String to search for."
    },
    {
      "name": "caseSensitive",
      "type": "boolean",
      "optional": true,
      "description": "If true, search is case sensitive."
    },
    {
      "name": "isRegex",
      "type": "boolean",
      "optional": true,
      "description": "If true, treats string parameter as regex."
    }
  ],
  "returns": [
    {
      "name": "result",
      "type": "array",
      "items": {
        "$ref": "SearchMatch"
      },
      "description": "List of search matches."
    }
  ],
  "experimental": true,
  "description": "Searches for given string in script content."
}