Skip to content

Commit 806f6d6

Browse files
author
Jakub Kulhan
committed
autoupdated protocol.json & generated files
1 parent 6c04886 commit 806f6d6

7 files changed

Lines changed: 183 additions & 6 deletions

gen-src/ChromeDevtoolsProtocol/Domain/DebuggerDomain.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
use ChromeDevtoolsProtocol\Model\Debugger\SetBreakpointRequest;
3737
use ChromeDevtoolsProtocol\Model\Debugger\SetBreakpointResponse;
3838
use ChromeDevtoolsProtocol\Model\Debugger\SetBreakpointsActiveRequest;
39+
use ChromeDevtoolsProtocol\Model\Debugger\SetInstrumentationBreakpointRequest;
40+
use ChromeDevtoolsProtocol\Model\Debugger\SetInstrumentationBreakpointResponse;
3941
use ChromeDevtoolsProtocol\Model\Debugger\SetPauseOnExceptionsRequest;
4042
use ChromeDevtoolsProtocol\Model\Debugger\SetReturnValueRequest;
4143
use ChromeDevtoolsProtocol\Model\Debugger\SetScriptSourceRequest;
@@ -190,6 +192,13 @@ public function setBreakpointsActive(ContextInterface $ctx, SetBreakpointsActive
190192
}
191193

192194

195+
public function setInstrumentationBreakpoint(ContextInterface $ctx, SetInstrumentationBreakpointRequest $request): SetInstrumentationBreakpointResponse
196+
{
197+
$response = $this->internalClient->executeCommand($ctx, 'Debugger.setInstrumentationBreakpoint', $request);
198+
return SetInstrumentationBreakpointResponse::fromJson($response);
199+
}
200+
201+
193202
public function setPauseOnExceptions(ContextInterface $ctx, SetPauseOnExceptionsRequest $request): void
194203
{
195204
$this->internalClient->executeCommand($ctx, 'Debugger.setPauseOnExceptions', $request);

gen-src/ChromeDevtoolsProtocol/Domain/DebuggerDomainInterface.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
use ChromeDevtoolsProtocol\Model\Debugger\SetBreakpointRequest;
3636
use ChromeDevtoolsProtocol\Model\Debugger\SetBreakpointResponse;
3737
use ChromeDevtoolsProtocol\Model\Debugger\SetBreakpointsActiveRequest;
38+
use ChromeDevtoolsProtocol\Model\Debugger\SetInstrumentationBreakpointRequest;
39+
use ChromeDevtoolsProtocol\Model\Debugger\SetInstrumentationBreakpointResponse;
3840
use ChromeDevtoolsProtocol\Model\Debugger\SetPauseOnExceptionsRequest;
3941
use ChromeDevtoolsProtocol\Model\Debugger\SetReturnValueRequest;
4042
use ChromeDevtoolsProtocol\Model\Debugger\SetScriptSourceRequest;
@@ -270,6 +272,17 @@ public function setBreakpointOnFunctionCall(ContextInterface $ctx, SetBreakpoint
270272
public function setBreakpointsActive(ContextInterface $ctx, SetBreakpointsActiveRequest $request): void;
271273

272274

275+
/**
276+
* Sets instrumentation breakpoint.
277+
*
278+
* @param ContextInterface $ctx
279+
* @param SetInstrumentationBreakpointRequest $request
280+
*
281+
* @return SetInstrumentationBreakpointResponse
282+
*/
283+
public function setInstrumentationBreakpoint(ContextInterface $ctx, SetInstrumentationBreakpointRequest $request): SetInstrumentationBreakpointResponse;
284+
285+
273286
/**
274287
* Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is `none`.
275288
*
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<?php
2+
3+
namespace ChromeDevtoolsProtocol\Model\Debugger;
4+
5+
/**
6+
* Request for Debugger.setInstrumentationBreakpoint command.
7+
*
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <jakub.kulhan@gmail.com>
11+
*/
12+
final class SetInstrumentationBreakpointRequest implements \JsonSerializable
13+
{
14+
/**
15+
* Instrumentation name.
16+
*
17+
* @var string
18+
*/
19+
public $instrumentation;
20+
21+
22+
public static function fromJson($data)
23+
{
24+
$instance = new static();
25+
if (isset($data->instrumentation)) {
26+
$instance->instrumentation = (string)$data->instrumentation;
27+
}
28+
return $instance;
29+
}
30+
31+
32+
public function jsonSerialize()
33+
{
34+
$data = new \stdClass();
35+
if ($this->instrumentation !== null) {
36+
$data->instrumentation = $this->instrumentation;
37+
}
38+
return $data;
39+
}
40+
41+
42+
/**
43+
* Create new instance using builder.
44+
*
45+
* @return SetInstrumentationBreakpointRequestBuilder
46+
*/
47+
public static function builder(): SetInstrumentationBreakpointRequestBuilder
48+
{
49+
return new SetInstrumentationBreakpointRequestBuilder();
50+
}
51+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?php
2+
3+
namespace ChromeDevtoolsProtocol\Model\Debugger;
4+
5+
use ChromeDevtoolsProtocol\Exception\BuilderException;
6+
7+
/**
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <jakub.kulhan@gmail.com>
11+
*/
12+
final class SetInstrumentationBreakpointRequestBuilder
13+
{
14+
private $instrumentation;
15+
16+
17+
/**
18+
* Validate non-optional parameters and return new instance.
19+
*/
20+
public function build(): SetInstrumentationBreakpointRequest
21+
{
22+
$instance = new SetInstrumentationBreakpointRequest();
23+
if ($this->instrumentation === null) {
24+
throw new BuilderException('Property [instrumentation] is required.');
25+
}
26+
$instance->instrumentation = $this->instrumentation;
27+
return $instance;
28+
}
29+
30+
31+
/**
32+
* @param string $instrumentation
33+
*
34+
* @return self
35+
*/
36+
public function setInstrumentation($instrumentation): self
37+
{
38+
$this->instrumentation = $instrumentation;
39+
return $this;
40+
}
41+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?php
2+
3+
namespace ChromeDevtoolsProtocol\Model\Debugger;
4+
5+
/**
6+
* Response to Debugger.setInstrumentationBreakpoint command.
7+
*
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <jakub.kulhan@gmail.com>
11+
*/
12+
final class SetInstrumentationBreakpointResponse implements \JsonSerializable
13+
{
14+
/**
15+
* Id of the created breakpoint for further reference.
16+
*
17+
* @var string
18+
*/
19+
public $breakpointId;
20+
21+
22+
public static function fromJson($data)
23+
{
24+
$instance = new static();
25+
if (isset($data->breakpointId)) {
26+
$instance->breakpointId = (string)$data->breakpointId;
27+
}
28+
return $instance;
29+
}
30+
31+
32+
public function jsonSerialize()
33+
{
34+
$data = new \stdClass();
35+
if ($this->breakpointId !== null) {
36+
$data->breakpointId = $this->breakpointId;
37+
}
38+
return $data;
39+
}
40+
}

protocol.json

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3868,6 +3868,28 @@
38683868
}
38693869
]
38703870
},
3871+
{
3872+
"name": "setInstrumentationBreakpoint",
3873+
"description": "Sets instrumentation breakpoint.",
3874+
"parameters": [
3875+
{
3876+
"name": "instrumentation",
3877+
"description": "Instrumentation name.",
3878+
"type": "string",
3879+
"enum": [
3880+
"beforeScriptExecution",
3881+
"beforeScriptWithSourceMapExecution"
3882+
]
3883+
}
3884+
],
3885+
"returns": [
3886+
{
3887+
"name": "breakpointId",
3888+
"description": "Id of the created breakpoint for further reference.",
3889+
"$ref": "BreakpointId"
3890+
}
3891+
]
3892+
},
38713893
{
38723894
"name": "setPauseOnExceptions",
38733895
"description": "Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is `none`.",
@@ -4047,16 +4069,17 @@
40474069
"description": "Pause reason.",
40484070
"type": "string",
40494071
"enum": [
4050-
"XHR",
4072+
"ambiguous",
4073+
"assert",
4074+
"debugCommand",
40514075
"DOM",
40524076
"EventListener",
40534077
"exception",
4054-
"assert",
4055-
"debugCommand",
4056-
"promiseRejection",
4078+
"instrumentation",
40574079
"OOM",
40584080
"other",
4059-
"ambiguous"
4081+
"promiseRejection",
4082+
"XHR"
40604083
]
40614084
},
40624085
{

protocol.json.md5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3e7dfc7781d71826d4f567de6870475d protocol.json
1+
1d1acf33c4e525cecb1f5d8f9aab3c60 protocol.json

0 commit comments

Comments
 (0)