Documentation ¶
Overview ¶
Package debugger provides functionality for using Chrome and the Chrome Dev Tools protocol
Index ¶
- func GetUserScripts(path string) (string, error)
- type Debugger
- func (d *Debugger) CallInspectors(webData modules.WebData)
- func (d *Debugger) CallProcessors(data modules.WebData) (string, error)
- func (d *Debugger) InjectScriptAsPageObject(scripts *string) string
- func (d *Debugger) SetupDOMDebugger()
- func (d *Debugger) SetupFileLogger()
- func (d *Debugger) SetupRequestInterception(params *gcdapi.NetworkSetRequestInterceptionParams)
- func (d *Debugger) StartTarget()
- func (d *Debugger) UpdateScriptsOnLoad(path string)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUserScripts ¶
Types ¶
type Debugger ¶
type Debugger struct { ChromeProxy *gcd.Gcd Done chan bool Options Options Target *gcd.ChromeTarget Modules modules.Modules XHRBreakPoints []string MessageChan chan string }
Debugger holds the configuration for the Chrome Dev Protocol hooks. It also contains modules to be used as requests and responses are intercepted.
func (*Debugger) CallInspectors ¶
CallInspectors executes inspectors in a gorp session
func (*Debugger) CallProcessors ¶
CallProcessors alters the body of web responses using the selected processors
func (*Debugger) InjectScriptAsPageObject ¶
func (*Debugger) SetupDOMDebugger ¶
func (d *Debugger) SetupDOMDebugger()
func (*Debugger) SetupFileLogger ¶
func (d *Debugger) SetupFileLogger()
func (*Debugger) SetupRequestInterception ¶
func (d *Debugger) SetupRequestInterception(params *gcdapi.NetworkSetRequestInterceptionParams)
SetupRequestInterception enables request interception using the specific params
func (*Debugger) StartTarget ¶
func (d *Debugger) StartTarget()
StartTarget initializes Chrome and sets up the Chrome Dev Tools protocol targets so that events can be intercepted
func (*Debugger) UpdateScriptsOnLoad ¶
Click to show internal directories.
Click to hide internal directories.