blob: c8401b7d8c17313d8104f42a519f487366388140 [file] [log] [blame]
Takashi Matsuo06694102015-09-11 13:55:40 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
Dan O'Mearadd494642020-05-01 07:42:23 -070075<h1><a href="clouddebugger_v2.html">Cloud Debugger API</a> . <a href="clouddebugger_v2.controller.html">controller</a> . <a href="clouddebugger_v2.controller.debuggees.html">debuggees</a> . <a href="clouddebugger_v2.controller.debuggees.breakpoints.html">breakpoints</a></h1>
Takashi Matsuo06694102015-09-11 13:55:40 -070076<h2>Instance Methods</h2>
77<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070078 <code><a href="#list">list(debuggeeId, agentId=None, successOnTimeout=None, waitToken=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040079<p class="firstline">Returns the list of all active breakpoints for the debuggee.</p>
Takashi Matsuo06694102015-09-11 13:55:40 -070080<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#update">update(debuggeeId, id, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040082<p class="firstline">Updates the breakpoint state or mutable fields.</p>
Takashi Matsuo06694102015-09-11 13:55:40 -070083<h3>Method Details</h3>
84<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -070085 <code class="details" id="list">list(debuggeeId, agentId=None, successOnTimeout=None, waitToken=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040086 <pre>Returns the list of all active breakpoints for the debuggee.
87
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088The breakpoint specification (`location`, `condition`, and `expressions`
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040089fields) is semantically immutable, although the field values may
90change. For example, an agent may update the location line number
91to reflect the actual line where the breakpoint was set, but this
Bu Sun Kim65020912020-05-20 12:08:20 -070092doesn&#x27;t change the breakpoint semantics.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040093
94This means that an agent does not need to check if a breakpoint has changed
95when it encounters the same breakpoint on a successive call.
96Moreover, an agent should remember the breakpoints that are completed
97until the controller removes them from the active list to avoid
98setting those breakpoints again.
Takashi Matsuo06694102015-09-11 13:55:40 -070099
100Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700101 debuggeeId: string, Required. Identifies the debuggee. (required)
102 agentId: string, Identifies the agent.
103This is the ID returned in the RegisterDebuggee response.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700104 successOnTimeout: boolean, If set to `true` (recommended), returns `google.rpc.Code.OK` status and
105sets the `wait_expired` response field to `true` when the server-selected
106timeout has expired.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400107
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700108If set to `false` (deprecated), returns `google.rpc.Code.ABORTED` status
109when the server-selected timeout has expired.
Bu Sun Kim65020912020-05-20 12:08:20 -0700110 waitToken: string, A token that, if specified, blocks the method call until the list
111of active breakpoints has changed, or a server-selected timeout has
112expired. The value should be set from the `next_wait_token` field in
113the last response. The initial value should be set to `&quot;init&quot;`.
Takashi Matsuo06694102015-09-11 13:55:40 -0700114 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400115 Allowed values
116 1 - v1 error format
117 2 - v2 error format
Takashi Matsuo06694102015-09-11 13:55:40 -0700118
119Returns:
120 An object of the form:
121
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800122 { # Response for listing active breakpoints.
Bu Sun Kim65020912020-05-20 12:08:20 -0700123 &quot;breakpoints&quot;: [ # List of all active breakpoints.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400124 # The fields `id` and `location` are guaranteed to be set on each breakpoint.
Dan O'Mearadd494642020-05-01 07:42:23 -0700125 { # ------------------------------------------------------------------------------
126 # ## Breakpoint (the resource)
127 #
128 # Represents the breakpoint specification, status and results.
Bu Sun Kim65020912020-05-20 12:08:20 -0700129 &quot;canaryExpireTime&quot;: &quot;A String&quot;, # The deadline for the breakpoint to stay in CANARY_ACTIVE state. The value
130 # is meaningless when the breakpoint is not in CANARY_ACTIVE state.
131 &quot;status&quot;: { # Represents a contextual status message. # Breakpoint status.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400132 #
133 # The status includes an error flag and a human readable message.
134 # This field is usually unset. The message can be either
135 # informational or an error message. Regardless, clients should always
136 # display the text message back to the user.
137 #
138 # Error status indicates complete failure of the breakpoint.
139 #
140 # Example (non-final state): `Still loading symbols...`
141 #
142 # Examples (final state):
143 #
144 # * `Invalid line number` referring to location
145 # * `Field f not found in class C` referring to condition
146 # The message can indicate an error or informational status, and refer to
147 # specific parts of the containing object.
148 # For example, the `Breakpoint.status` field can indicate an error referring
149 # to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700150 &quot;isError&quot;: True or False, # Distinguishes errors from informational messages.
151 &quot;description&quot;: { # Represents a message with parameters. # Status message text.
152 &quot;parameters&quot;: [ # Optional parameters to be embedded into the message.
153 &quot;A String&quot;,
Takashi Matsuo06694102015-09-11 13:55:40 -0700154 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700155 &quot;format&quot;: &quot;A String&quot;, # Format template for the message. The `format` uses placeholders `$0`,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400156 # `$1`, etc. to reference parameters. `$$` can be used to denote the `$`
157 # character.
158 #
159 # Examples:
160 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700161 # * `Failed to load &#x27;$0&#x27; which helps debug $1 the first time it
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400162 # is loaded. Again, $0 is very important.`
163 # * `Please pay $$10 to use $0 instead of $1.`
Takashi Matsuo06694102015-09-11 13:55:40 -0700164 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700165 &quot;refersTo&quot;: &quot;A String&quot;, # Reference to which the message applies.
Takashi Matsuo06694102015-09-11 13:55:40 -0700166 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700167 &quot;state&quot;: &quot;A String&quot;, # The current state of the breakpoint.
168 &quot;userEmail&quot;: &quot;A String&quot;, # E-mail address of the user that created this breakpoint
169 &quot;action&quot;: &quot;A String&quot;, # Action that the agent should perform when the code at the
170 # breakpoint location is hit.
171 &quot;logLevel&quot;: &quot;A String&quot;, # Indicates the severity of the log. Only relevant when action is `LOG`.
172 &quot;id&quot;: &quot;A String&quot;, # Breakpoint identifier, unique in the scope of the debuggee.
173 &quot;location&quot;: { # Represents a location in the source code. # Breakpoint source location.
174 &quot;path&quot;: &quot;A String&quot;, # Path to the source file within the source context of the target binary.
175 &quot;column&quot;: 42, # Column within a line. The first column in a line as the value `1`.
176 # Agents that do not support setting breakpoints on specific columns ignore
177 # this field.
178 &quot;line&quot;: 42, # Line inside the file. The first line in the file has the value `1`.
179 },
180 &quot;finalTime&quot;: &quot;A String&quot;, # Time this breakpoint was finalized as seen by the server in seconds
181 # resolution.
182 &quot;variableTable&quot;: [ # The `variable_table` exists to aid with computation, memory and network
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400183 # traffic optimization. It enables storing a variable once and reference
184 # it from multiple variables, including variables stored in the
185 # `variable_table` itself.
186 # For example, the same `this` object, which may appear at many levels of
187 # the stack, can have all of its data stored once in this table. The
188 # stack frame variables then would hold only a reference to it.
189 #
190 # The variable `var_table_index` field is an index into this repeated field.
191 # The stored objects are nameless and get their name from the referencing
192 # variable. The effective variable is a merge of the referencing variable
193 # and the referenced variable.
194 { # Represents a variable or an argument possibly of a compound object type.
195 # Note how the following variables are represented:
196 #
197 # 1) A simple variable:
198 #
199 # int x = 5
200 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700201 # { name: &quot;x&quot;, value: &quot;5&quot;, type: &quot;int&quot; } // Captured variable
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400202 #
203 # 2) A compound object:
204 #
205 # struct T {
206 # int m1;
207 # int m2;
208 # };
209 # T x = { 3, 7 };
210 #
211 # { // Captured variable
Bu Sun Kim65020912020-05-20 12:08:20 -0700212 # name: &quot;x&quot;,
213 # type: &quot;T&quot;,
214 # members { name: &quot;m1&quot;, value: &quot;3&quot;, type: &quot;int&quot; },
215 # members { name: &quot;m2&quot;, value: &quot;7&quot;, type: &quot;int&quot; }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400216 # }
217 #
218 # 3) A pointer where the pointee was captured:
219 #
220 # T x = { 3, 7 };
Dan O'Mearadd494642020-05-01 07:42:23 -0700221 # T* p = &amp;x;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400222 #
223 # { // Captured variable
Bu Sun Kim65020912020-05-20 12:08:20 -0700224 # name: &quot;p&quot;,
225 # type: &quot;T*&quot;,
226 # value: &quot;0x00500500&quot;,
227 # members { name: &quot;m1&quot;, value: &quot;3&quot;, type: &quot;int&quot; },
228 # members { name: &quot;m2&quot;, value: &quot;7&quot;, type: &quot;int&quot; }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400229 # }
230 #
231 # 4) A pointer where the pointee was not captured:
232 #
233 # T* p = new T;
234 #
235 # { // Captured variable
Bu Sun Kim65020912020-05-20 12:08:20 -0700236 # name: &quot;p&quot;,
237 # type: &quot;T*&quot;,
238 # value: &quot;0x00400400&quot;
239 # status { is_error: true, description { format: &quot;unavailable&quot; } }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400240 # }
241 #
242 # The status should describe the reason for the missing value,
Dan O'Mearadd494642020-05-01 07:42:23 -0700243 # such as `&lt;optimized out&gt;`, `&lt;inaccessible&gt;`, `&lt;pointers limit reached&gt;`.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400244 #
245 # Note that a null pointer should not have members.
246 #
247 # 5) An unnamed value:
248 #
249 # int* p = new int(7);
250 #
251 # { // Captured variable
Bu Sun Kim65020912020-05-20 12:08:20 -0700252 # name: &quot;p&quot;,
253 # value: &quot;0x00500500&quot;,
254 # type: &quot;int*&quot;,
255 # members { value: &quot;7&quot;, type: &quot;int&quot; } }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400256 #
257 # 6) An unnamed pointer where the pointee was not captured:
258 #
259 # int* p = new int(7);
Dan O'Mearadd494642020-05-01 07:42:23 -0700260 # int** pp = &amp;p;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400261 #
262 # { // Captured variable
Bu Sun Kim65020912020-05-20 12:08:20 -0700263 # name: &quot;pp&quot;,
264 # value: &quot;0x00500500&quot;,
265 # type: &quot;int**&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400266 # members {
Bu Sun Kim65020912020-05-20 12:08:20 -0700267 # value: &quot;0x00400400&quot;,
268 # type: &quot;int*&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400269 # status {
270 # is_error: true,
Bu Sun Kim65020912020-05-20 12:08:20 -0700271 # description: { format: &quot;unavailable&quot; } }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400272 # }
273 # }
274 # }
275 #
276 # To optimize computation, memory and network traffic, variables that
277 # repeat in the output multiple times can be stored once in a shared
278 # variable table and be referenced using the `var_table_index` field. The
279 # variables stored in the shared table are nameless and are essentially
280 # a partition of the complete variable. To reconstruct the complete
281 # variable, merge the referencing variable with the referenced variable.
282 #
283 # When using the shared variable table, the following variables:
284 #
285 # T x = { 3, 7 };
Dan O'Mearadd494642020-05-01 07:42:23 -0700286 # T* p = &amp;x;
287 # T&amp; r = x;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400288 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700289 # { name: &quot;x&quot;, var_table_index: 3, type: &quot;T&quot; } // Captured variables
290 # { name: &quot;p&quot;, value &quot;0x00500500&quot;, type=&quot;T*&quot;, var_table_index: 3 }
291 # { name: &quot;r&quot;, type=&quot;T&amp;&quot;, var_table_index: 3 }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400292 #
293 # { // Shared variable table entry #3:
Bu Sun Kim65020912020-05-20 12:08:20 -0700294 # members { name: &quot;m1&quot;, value: &quot;3&quot;, type: &quot;int&quot; },
295 # members { name: &quot;m2&quot;, value: &quot;7&quot;, type: &quot;int&quot; }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400296 # }
297 #
298 # Note that the pointer address is stored with the referencing variable
299 # and not with the referenced variable. This allows the referenced variable
300 # to be shared between pointers and references.
301 #
302 # The type field is optional. The debugger agent may or may not support it.
Bu Sun Kim65020912020-05-20 12:08:20 -0700303 &quot;members&quot;: [ # Members contained or pointed to by the variable.
304 # Object with schema name: Variable
305 ],
306 &quot;status&quot;: { # Represents a contextual status message. # Status associated with the variable. This field will usually stay
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400307 # unset. A status of a single variable only applies to that variable or
308 # expression. The rest of breakpoint data still remains valid. Variables
309 # might be reported in error state even when breakpoint is not in final
310 # state.
311 #
312 # The message may refer to variable name with `refers_to` set to
313 # `VARIABLE_NAME`. Alternatively `refers_to` will be set to `VARIABLE_VALUE`.
314 # In either case variable value and members will be unset.
315 #
316 # Example of error message applied to name: `Invalid expression syntax`.
317 #
318 # Example of information message applied to value: `Not captured`.
319 #
320 # Examples of error message applied to value:
321 #
322 # * `Malformed string`,
323 # * `Field f not found in class C`
324 # * `Null pointer dereference`
325 # The message can indicate an error or informational status, and refer to
326 # specific parts of the containing object.
327 # For example, the `Breakpoint.status` field can indicate an error referring
328 # to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700329 &quot;isError&quot;: True or False, # Distinguishes errors from informational messages.
330 &quot;description&quot;: { # Represents a message with parameters. # Status message text.
331 &quot;parameters&quot;: [ # Optional parameters to be embedded into the message.
332 &quot;A String&quot;,
Takashi Matsuo06694102015-09-11 13:55:40 -0700333 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700334 &quot;format&quot;: &quot;A String&quot;, # Format template for the message. The `format` uses placeholders `$0`,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400335 # `$1`, etc. to reference parameters. `$$` can be used to denote the `$`
336 # character.
337 #
338 # Examples:
339 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700340 # * `Failed to load &#x27;$0&#x27; which helps debug $1 the first time it
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400341 # is loaded. Again, $0 is very important.`
342 # * `Please pay $$10 to use $0 instead of $1.`
Takashi Matsuo06694102015-09-11 13:55:40 -0700343 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700344 &quot;refersTo&quot;: &quot;A String&quot;, # Reference to which the message applies.
Takashi Matsuo06694102015-09-11 13:55:40 -0700345 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700346 &quot;name&quot;: &quot;A String&quot;, # Name of the variable, if any.
347 &quot;type&quot;: &quot;A String&quot;, # Variable type (e.g. `MyClass`). If the variable is split with
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400348 # `var_table_index`, `type` goes next to `value`. The interpretation of
349 # a type is agent specific. It is recommended to include the dynamic type
350 # rather than a static type of an object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700351 &quot;varTableIndex&quot;: 42, # Reference to a variable in the shared variable table. More than
352 # one variable can reference the same variable in the table. The
353 # `var_table_index` field is an index into `variable_table` in Breakpoint.
354 &quot;value&quot;: &quot;A String&quot;, # Simple value of the variable.
Takashi Matsuo06694102015-09-11 13:55:40 -0700355 },
356 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700357 &quot;createTime&quot;: &quot;A String&quot;, # Time this breakpoint was created by the server in seconds resolution.
358 &quot;logMessageFormat&quot;: &quot;A String&quot;, # Only relevant when action is `LOG`. Defines the message to log when
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700359 # the breakpoint hits. The message may include parameter placeholders `$0`,
360 # `$1`, etc. These placeholders are replaced with the evaluated value
361 # of the appropriate expression. Expressions not referenced in
362 # `log_message_format` are not logged.
363 #
364 # Example: `Message received, id = $0, count = $1` with
365 # `expressions` = `[ message.id, message.count ]`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700366 &quot;labels&quot;: { # A set of custom breakpoint properties, populated by the agent, to be
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400367 # displayed to the user.
Bu Sun Kim65020912020-05-20 12:08:20 -0700368 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700369 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700370 &quot;expressions&quot;: [ # List of read-only expressions to evaluate at the breakpoint location.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700371 # The expressions are composed using expressions in the programming language
372 # at the source location. If the breakpoint action is `LOG`, the evaluated
373 # expressions are included in log statements.
Bu Sun Kim65020912020-05-20 12:08:20 -0700374 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700375 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700376 &quot;evaluatedExpressions&quot;: [ # Values of evaluated expressions at breakpoint time.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400377 # The evaluated expressions appear in exactly the same order they
378 # are listed in the `expressions` field.
379 # The `name` field holds the original expression text, the `value` or
380 # `members` field holds the result of the evaluated expression.
381 # If the expression cannot be evaluated, the `status` inside the `Variable`
382 # will indicate an error and contain the error text.
383 { # Represents a variable or an argument possibly of a compound object type.
384 # Note how the following variables are represented:
385 #
386 # 1) A simple variable:
387 #
388 # int x = 5
389 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700390 # { name: &quot;x&quot;, value: &quot;5&quot;, type: &quot;int&quot; } // Captured variable
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400391 #
392 # 2) A compound object:
393 #
394 # struct T {
395 # int m1;
396 # int m2;
397 # };
398 # T x = { 3, 7 };
399 #
400 # { // Captured variable
Bu Sun Kim65020912020-05-20 12:08:20 -0700401 # name: &quot;x&quot;,
402 # type: &quot;T&quot;,
403 # members { name: &quot;m1&quot;, value: &quot;3&quot;, type: &quot;int&quot; },
404 # members { name: &quot;m2&quot;, value: &quot;7&quot;, type: &quot;int&quot; }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400405 # }
406 #
407 # 3) A pointer where the pointee was captured:
408 #
409 # T x = { 3, 7 };
Dan O'Mearadd494642020-05-01 07:42:23 -0700410 # T* p = &amp;x;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400411 #
412 # { // Captured variable
Bu Sun Kim65020912020-05-20 12:08:20 -0700413 # name: &quot;p&quot;,
414 # type: &quot;T*&quot;,
415 # value: &quot;0x00500500&quot;,
416 # members { name: &quot;m1&quot;, value: &quot;3&quot;, type: &quot;int&quot; },
417 # members { name: &quot;m2&quot;, value: &quot;7&quot;, type: &quot;int&quot; }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400418 # }
419 #
420 # 4) A pointer where the pointee was not captured:
421 #
422 # T* p = new T;
423 #
424 # { // Captured variable
Bu Sun Kim65020912020-05-20 12:08:20 -0700425 # name: &quot;p&quot;,
426 # type: &quot;T*&quot;,
427 # value: &quot;0x00400400&quot;
428 # status { is_error: true, description { format: &quot;unavailable&quot; } }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400429 # }
430 #
431 # The status should describe the reason for the missing value,
Dan O'Mearadd494642020-05-01 07:42:23 -0700432 # such as `&lt;optimized out&gt;`, `&lt;inaccessible&gt;`, `&lt;pointers limit reached&gt;`.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400433 #
434 # Note that a null pointer should not have members.
435 #
436 # 5) An unnamed value:
437 #
438 # int* p = new int(7);
439 #
440 # { // Captured variable
Bu Sun Kim65020912020-05-20 12:08:20 -0700441 # name: &quot;p&quot;,
442 # value: &quot;0x00500500&quot;,
443 # type: &quot;int*&quot;,
444 # members { value: &quot;7&quot;, type: &quot;int&quot; } }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400445 #
446 # 6) An unnamed pointer where the pointee was not captured:
447 #
448 # int* p = new int(7);
Dan O'Mearadd494642020-05-01 07:42:23 -0700449 # int** pp = &amp;p;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400450 #
451 # { // Captured variable
Bu Sun Kim65020912020-05-20 12:08:20 -0700452 # name: &quot;pp&quot;,
453 # value: &quot;0x00500500&quot;,
454 # type: &quot;int**&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400455 # members {
Bu Sun Kim65020912020-05-20 12:08:20 -0700456 # value: &quot;0x00400400&quot;,
457 # type: &quot;int*&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400458 # status {
459 # is_error: true,
Bu Sun Kim65020912020-05-20 12:08:20 -0700460 # description: { format: &quot;unavailable&quot; } }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400461 # }
462 # }
463 # }
464 #
465 # To optimize computation, memory and network traffic, variables that
466 # repeat in the output multiple times can be stored once in a shared
467 # variable table and be referenced using the `var_table_index` field. The
468 # variables stored in the shared table are nameless and are essentially
469 # a partition of the complete variable. To reconstruct the complete
470 # variable, merge the referencing variable with the referenced variable.
471 #
472 # When using the shared variable table, the following variables:
473 #
474 # T x = { 3, 7 };
Dan O'Mearadd494642020-05-01 07:42:23 -0700475 # T* p = &amp;x;
476 # T&amp; r = x;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400477 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700478 # { name: &quot;x&quot;, var_table_index: 3, type: &quot;T&quot; } // Captured variables
479 # { name: &quot;p&quot;, value &quot;0x00500500&quot;, type=&quot;T*&quot;, var_table_index: 3 }
480 # { name: &quot;r&quot;, type=&quot;T&amp;&quot;, var_table_index: 3 }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400481 #
482 # { // Shared variable table entry #3:
Bu Sun Kim65020912020-05-20 12:08:20 -0700483 # members { name: &quot;m1&quot;, value: &quot;3&quot;, type: &quot;int&quot; },
484 # members { name: &quot;m2&quot;, value: &quot;7&quot;, type: &quot;int&quot; }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400485 # }
486 #
487 # Note that the pointer address is stored with the referencing variable
488 # and not with the referenced variable. This allows the referenced variable
489 # to be shared between pointers and references.
490 #
491 # The type field is optional. The debugger agent may or may not support it.
Bu Sun Kim65020912020-05-20 12:08:20 -0700492 &quot;members&quot;: [ # Members contained or pointed to by the variable.
493 # Object with schema name: Variable
494 ],
495 &quot;status&quot;: { # Represents a contextual status message. # Status associated with the variable. This field will usually stay
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400496 # unset. A status of a single variable only applies to that variable or
497 # expression. The rest of breakpoint data still remains valid. Variables
498 # might be reported in error state even when breakpoint is not in final
499 # state.
500 #
501 # The message may refer to variable name with `refers_to` set to
502 # `VARIABLE_NAME`. Alternatively `refers_to` will be set to `VARIABLE_VALUE`.
503 # In either case variable value and members will be unset.
504 #
505 # Example of error message applied to name: `Invalid expression syntax`.
506 #
507 # Example of information message applied to value: `Not captured`.
508 #
509 # Examples of error message applied to value:
510 #
511 # * `Malformed string`,
512 # * `Field f not found in class C`
513 # * `Null pointer dereference`
514 # The message can indicate an error or informational status, and refer to
515 # specific parts of the containing object.
516 # For example, the `Breakpoint.status` field can indicate an error referring
517 # to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700518 &quot;isError&quot;: True or False, # Distinguishes errors from informational messages.
519 &quot;description&quot;: { # Represents a message with parameters. # Status message text.
520 &quot;parameters&quot;: [ # Optional parameters to be embedded into the message.
521 &quot;A String&quot;,
Takashi Matsuo06694102015-09-11 13:55:40 -0700522 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700523 &quot;format&quot;: &quot;A String&quot;, # Format template for the message. The `format` uses placeholders `$0`,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400524 # `$1`, etc. to reference parameters. `$$` can be used to denote the `$`
525 # character.
526 #
527 # Examples:
528 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700529 # * `Failed to load &#x27;$0&#x27; which helps debug $1 the first time it
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400530 # is loaded. Again, $0 is very important.`
531 # * `Please pay $$10 to use $0 instead of $1.`
Takashi Matsuo06694102015-09-11 13:55:40 -0700532 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700533 &quot;refersTo&quot;: &quot;A String&quot;, # Reference to which the message applies.
Takashi Matsuo06694102015-09-11 13:55:40 -0700534 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700535 &quot;name&quot;: &quot;A String&quot;, # Name of the variable, if any.
536 &quot;type&quot;: &quot;A String&quot;, # Variable type (e.g. `MyClass`). If the variable is split with
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400537 # `var_table_index`, `type` goes next to `value`. The interpretation of
538 # a type is agent specific. It is recommended to include the dynamic type
539 # rather than a static type of an object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700540 &quot;varTableIndex&quot;: 42, # Reference to a variable in the shared variable table. More than
541 # one variable can reference the same variable in the table. The
542 # `var_table_index` field is an index into `variable_table` in Breakpoint.
543 &quot;value&quot;: &quot;A String&quot;, # Simple value of the variable.
Takashi Matsuo06694102015-09-11 13:55:40 -0700544 },
545 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700546 &quot;isFinalState&quot;: True or False, # When true, indicates that this is a final result and the
547 # breakpoint state will not change from here on.
548 &quot;stackFrames&quot;: [ # The stack at breakpoint time, where stack_frames[0] represents the most
549 # recently entered function.
550 { # Represents a stack frame context.
551 &quot;arguments&quot;: [ # Set of arguments passed to this function.
552 # Note that this might not be populated for all stack frames.
553 { # Represents a variable or an argument possibly of a compound object type.
554 # Note how the following variables are represented:
555 #
556 # 1) A simple variable:
557 #
558 # int x = 5
559 #
560 # { name: &quot;x&quot;, value: &quot;5&quot;, type: &quot;int&quot; } // Captured variable
561 #
562 # 2) A compound object:
563 #
564 # struct T {
565 # int m1;
566 # int m2;
567 # };
568 # T x = { 3, 7 };
569 #
570 # { // Captured variable
571 # name: &quot;x&quot;,
572 # type: &quot;T&quot;,
573 # members { name: &quot;m1&quot;, value: &quot;3&quot;, type: &quot;int&quot; },
574 # members { name: &quot;m2&quot;, value: &quot;7&quot;, type: &quot;int&quot; }
575 # }
576 #
577 # 3) A pointer where the pointee was captured:
578 #
579 # T x = { 3, 7 };
580 # T* p = &amp;x;
581 #
582 # { // Captured variable
583 # name: &quot;p&quot;,
584 # type: &quot;T*&quot;,
585 # value: &quot;0x00500500&quot;,
586 # members { name: &quot;m1&quot;, value: &quot;3&quot;, type: &quot;int&quot; },
587 # members { name: &quot;m2&quot;, value: &quot;7&quot;, type: &quot;int&quot; }
588 # }
589 #
590 # 4) A pointer where the pointee was not captured:
591 #
592 # T* p = new T;
593 #
594 # { // Captured variable
595 # name: &quot;p&quot;,
596 # type: &quot;T*&quot;,
597 # value: &quot;0x00400400&quot;
598 # status { is_error: true, description { format: &quot;unavailable&quot; } }
599 # }
600 #
601 # The status should describe the reason for the missing value,
602 # such as `&lt;optimized out&gt;`, `&lt;inaccessible&gt;`, `&lt;pointers limit reached&gt;`.
603 #
604 # Note that a null pointer should not have members.
605 #
606 # 5) An unnamed value:
607 #
608 # int* p = new int(7);
609 #
610 # { // Captured variable
611 # name: &quot;p&quot;,
612 # value: &quot;0x00500500&quot;,
613 # type: &quot;int*&quot;,
614 # members { value: &quot;7&quot;, type: &quot;int&quot; } }
615 #
616 # 6) An unnamed pointer where the pointee was not captured:
617 #
618 # int* p = new int(7);
619 # int** pp = &amp;p;
620 #
621 # { // Captured variable
622 # name: &quot;pp&quot;,
623 # value: &quot;0x00500500&quot;,
624 # type: &quot;int**&quot;,
625 # members {
626 # value: &quot;0x00400400&quot;,
627 # type: &quot;int*&quot;
628 # status {
629 # is_error: true,
630 # description: { format: &quot;unavailable&quot; } }
631 # }
632 # }
633 # }
634 #
635 # To optimize computation, memory and network traffic, variables that
636 # repeat in the output multiple times can be stored once in a shared
637 # variable table and be referenced using the `var_table_index` field. The
638 # variables stored in the shared table are nameless and are essentially
639 # a partition of the complete variable. To reconstruct the complete
640 # variable, merge the referencing variable with the referenced variable.
641 #
642 # When using the shared variable table, the following variables:
643 #
644 # T x = { 3, 7 };
645 # T* p = &amp;x;
646 # T&amp; r = x;
647 #
648 # { name: &quot;x&quot;, var_table_index: 3, type: &quot;T&quot; } // Captured variables
649 # { name: &quot;p&quot;, value &quot;0x00500500&quot;, type=&quot;T*&quot;, var_table_index: 3 }
650 # { name: &quot;r&quot;, type=&quot;T&amp;&quot;, var_table_index: 3 }
651 #
652 # { // Shared variable table entry #3:
653 # members { name: &quot;m1&quot;, value: &quot;3&quot;, type: &quot;int&quot; },
654 # members { name: &quot;m2&quot;, value: &quot;7&quot;, type: &quot;int&quot; }
655 # }
656 #
657 # Note that the pointer address is stored with the referencing variable
658 # and not with the referenced variable. This allows the referenced variable
659 # to be shared between pointers and references.
660 #
661 # The type field is optional. The debugger agent may or may not support it.
662 &quot;members&quot;: [ # Members contained or pointed to by the variable.
663 # Object with schema name: Variable
664 ],
665 &quot;status&quot;: { # Represents a contextual status message. # Status associated with the variable. This field will usually stay
666 # unset. A status of a single variable only applies to that variable or
667 # expression. The rest of breakpoint data still remains valid. Variables
668 # might be reported in error state even when breakpoint is not in final
669 # state.
670 #
671 # The message may refer to variable name with `refers_to` set to
672 # `VARIABLE_NAME`. Alternatively `refers_to` will be set to `VARIABLE_VALUE`.
673 # In either case variable value and members will be unset.
674 #
675 # Example of error message applied to name: `Invalid expression syntax`.
676 #
677 # Example of information message applied to value: `Not captured`.
678 #
679 # Examples of error message applied to value:
680 #
681 # * `Malformed string`,
682 # * `Field f not found in class C`
683 # * `Null pointer dereference`
684 # The message can indicate an error or informational status, and refer to
685 # specific parts of the containing object.
686 # For example, the `Breakpoint.status` field can indicate an error referring
687 # to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
688 &quot;isError&quot;: True or False, # Distinguishes errors from informational messages.
689 &quot;description&quot;: { # Represents a message with parameters. # Status message text.
690 &quot;parameters&quot;: [ # Optional parameters to be embedded into the message.
691 &quot;A String&quot;,
692 ],
693 &quot;format&quot;: &quot;A String&quot;, # Format template for the message. The `format` uses placeholders `$0`,
694 # `$1`, etc. to reference parameters. `$$` can be used to denote the `$`
695 # character.
696 #
697 # Examples:
698 #
699 # * `Failed to load &#x27;$0&#x27; which helps debug $1 the first time it
700 # is loaded. Again, $0 is very important.`
701 # * `Please pay $$10 to use $0 instead of $1.`
702 },
703 &quot;refersTo&quot;: &quot;A String&quot;, # Reference to which the message applies.
704 },
705 &quot;name&quot;: &quot;A String&quot;, # Name of the variable, if any.
706 &quot;type&quot;: &quot;A String&quot;, # Variable type (e.g. `MyClass`). If the variable is split with
707 # `var_table_index`, `type` goes next to `value`. The interpretation of
708 # a type is agent specific. It is recommended to include the dynamic type
709 # rather than a static type of an object.
710 &quot;varTableIndex&quot;: 42, # Reference to a variable in the shared variable table. More than
711 # one variable can reference the same variable in the table. The
712 # `var_table_index` field is an index into `variable_table` in Breakpoint.
713 &quot;value&quot;: &quot;A String&quot;, # Simple value of the variable.
714 },
715 ],
716 &quot;locals&quot;: [ # Set of local variables at the stack frame location.
717 # Note that this might not be populated for all stack frames.
718 { # Represents a variable or an argument possibly of a compound object type.
719 # Note how the following variables are represented:
720 #
721 # 1) A simple variable:
722 #
723 # int x = 5
724 #
725 # { name: &quot;x&quot;, value: &quot;5&quot;, type: &quot;int&quot; } // Captured variable
726 #
727 # 2) A compound object:
728 #
729 # struct T {
730 # int m1;
731 # int m2;
732 # };
733 # T x = { 3, 7 };
734 #
735 # { // Captured variable
736 # name: &quot;x&quot;,
737 # type: &quot;T&quot;,
738 # members { name: &quot;m1&quot;, value: &quot;3&quot;, type: &quot;int&quot; },
739 # members { name: &quot;m2&quot;, value: &quot;7&quot;, type: &quot;int&quot; }
740 # }
741 #
742 # 3) A pointer where the pointee was captured:
743 #
744 # T x = { 3, 7 };
745 # T* p = &amp;x;
746 #
747 # { // Captured variable
748 # name: &quot;p&quot;,
749 # type: &quot;T*&quot;,
750 # value: &quot;0x00500500&quot;,
751 # members { name: &quot;m1&quot;, value: &quot;3&quot;, type: &quot;int&quot; },
752 # members { name: &quot;m2&quot;, value: &quot;7&quot;, type: &quot;int&quot; }
753 # }
754 #
755 # 4) A pointer where the pointee was not captured:
756 #
757 # T* p = new T;
758 #
759 # { // Captured variable
760 # name: &quot;p&quot;,
761 # type: &quot;T*&quot;,
762 # value: &quot;0x00400400&quot;
763 # status { is_error: true, description { format: &quot;unavailable&quot; } }
764 # }
765 #
766 # The status should describe the reason for the missing value,
767 # such as `&lt;optimized out&gt;`, `&lt;inaccessible&gt;`, `&lt;pointers limit reached&gt;`.
768 #
769 # Note that a null pointer should not have members.
770 #
771 # 5) An unnamed value:
772 #
773 # int* p = new int(7);
774 #
775 # { // Captured variable
776 # name: &quot;p&quot;,
777 # value: &quot;0x00500500&quot;,
778 # type: &quot;int*&quot;,
779 # members { value: &quot;7&quot;, type: &quot;int&quot; } }
780 #
781 # 6) An unnamed pointer where the pointee was not captured:
782 #
783 # int* p = new int(7);
784 # int** pp = &amp;p;
785 #
786 # { // Captured variable
787 # name: &quot;pp&quot;,
788 # value: &quot;0x00500500&quot;,
789 # type: &quot;int**&quot;,
790 # members {
791 # value: &quot;0x00400400&quot;,
792 # type: &quot;int*&quot;
793 # status {
794 # is_error: true,
795 # description: { format: &quot;unavailable&quot; } }
796 # }
797 # }
798 # }
799 #
800 # To optimize computation, memory and network traffic, variables that
801 # repeat in the output multiple times can be stored once in a shared
802 # variable table and be referenced using the `var_table_index` field. The
803 # variables stored in the shared table are nameless and are essentially
804 # a partition of the complete variable. To reconstruct the complete
805 # variable, merge the referencing variable with the referenced variable.
806 #
807 # When using the shared variable table, the following variables:
808 #
809 # T x = { 3, 7 };
810 # T* p = &amp;x;
811 # T&amp; r = x;
812 #
813 # { name: &quot;x&quot;, var_table_index: 3, type: &quot;T&quot; } // Captured variables
814 # { name: &quot;p&quot;, value &quot;0x00500500&quot;, type=&quot;T*&quot;, var_table_index: 3 }
815 # { name: &quot;r&quot;, type=&quot;T&amp;&quot;, var_table_index: 3 }
816 #
817 # { // Shared variable table entry #3:
818 # members { name: &quot;m1&quot;, value: &quot;3&quot;, type: &quot;int&quot; },
819 # members { name: &quot;m2&quot;, value: &quot;7&quot;, type: &quot;int&quot; }
820 # }
821 #
822 # Note that the pointer address is stored with the referencing variable
823 # and not with the referenced variable. This allows the referenced variable
824 # to be shared between pointers and references.
825 #
826 # The type field is optional. The debugger agent may or may not support it.
827 &quot;members&quot;: [ # Members contained or pointed to by the variable.
828 # Object with schema name: Variable
829 ],
830 &quot;status&quot;: { # Represents a contextual status message. # Status associated with the variable. This field will usually stay
831 # unset. A status of a single variable only applies to that variable or
832 # expression. The rest of breakpoint data still remains valid. Variables
833 # might be reported in error state even when breakpoint is not in final
834 # state.
835 #
836 # The message may refer to variable name with `refers_to` set to
837 # `VARIABLE_NAME`. Alternatively `refers_to` will be set to `VARIABLE_VALUE`.
838 # In either case variable value and members will be unset.
839 #
840 # Example of error message applied to name: `Invalid expression syntax`.
841 #
842 # Example of information message applied to value: `Not captured`.
843 #
844 # Examples of error message applied to value:
845 #
846 # * `Malformed string`,
847 # * `Field f not found in class C`
848 # * `Null pointer dereference`
849 # The message can indicate an error or informational status, and refer to
850 # specific parts of the containing object.
851 # For example, the `Breakpoint.status` field can indicate an error referring
852 # to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
853 &quot;isError&quot;: True or False, # Distinguishes errors from informational messages.
854 &quot;description&quot;: { # Represents a message with parameters. # Status message text.
855 &quot;parameters&quot;: [ # Optional parameters to be embedded into the message.
856 &quot;A String&quot;,
857 ],
858 &quot;format&quot;: &quot;A String&quot;, # Format template for the message. The `format` uses placeholders `$0`,
859 # `$1`, etc. to reference parameters. `$$` can be used to denote the `$`
860 # character.
861 #
862 # Examples:
863 #
864 # * `Failed to load &#x27;$0&#x27; which helps debug $1 the first time it
865 # is loaded. Again, $0 is very important.`
866 # * `Please pay $$10 to use $0 instead of $1.`
867 },
868 &quot;refersTo&quot;: &quot;A String&quot;, # Reference to which the message applies.
869 },
870 &quot;name&quot;: &quot;A String&quot;, # Name of the variable, if any.
871 &quot;type&quot;: &quot;A String&quot;, # Variable type (e.g. `MyClass`). If the variable is split with
872 # `var_table_index`, `type` goes next to `value`. The interpretation of
873 # a type is agent specific. It is recommended to include the dynamic type
874 # rather than a static type of an object.
875 &quot;varTableIndex&quot;: 42, # Reference to a variable in the shared variable table. More than
876 # one variable can reference the same variable in the table. The
877 # `var_table_index` field is an index into `variable_table` in Breakpoint.
878 &quot;value&quot;: &quot;A String&quot;, # Simple value of the variable.
879 },
880 ],
881 &quot;location&quot;: { # Represents a location in the source code. # Source location of the call site.
882 &quot;path&quot;: &quot;A String&quot;, # Path to the source file within the source context of the target binary.
883 &quot;column&quot;: 42, # Column within a line. The first column in a line as the value `1`.
884 # Agents that do not support setting breakpoints on specific columns ignore
885 # this field.
886 &quot;line&quot;: 42, # Line inside the file. The first line in the file has the value `1`.
887 },
888 &quot;function&quot;: &quot;A String&quot;, # Demangled function name at the call site.
889 },
890 ],
891 &quot;condition&quot;: &quot;A String&quot;, # Condition that triggers the breakpoint.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400892 # The condition is a compound boolean expression composed using expressions
893 # in a programming language at the source location.
Takashi Matsuo06694102015-09-11 13:55:40 -0700894 },
895 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700896 &quot;waitExpired&quot;: True or False, # If set to `true`, indicates that there is no change to the
897 # list of active breakpoints and the server-selected timeout has expired.
898 # The `breakpoints` field would be empty and should be ignored.
899 &quot;nextWaitToken&quot;: &quot;A String&quot;, # A token that can be used in the next method call to block until
900 # the list of breakpoints changes.
Takashi Matsuo06694102015-09-11 13:55:40 -0700901 }</pre>
902</div>
903
904<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700905 <code class="details" id="update">update(debuggeeId, id, body=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400906 <pre>Updates the breakpoint state or mutable fields.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700907The entire Breakpoint message must be sent back to the controller service.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400908
909Updates to active breakpoint fields are only allowed if the new value
910does not change the breakpoint specification. Updates to the `location`,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700911`condition` and `expressions` fields should not alter the breakpoint
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400912semantics. These may only make changes such as canonicalizing a value
913or snapping the location to the correct line of code.
Takashi Matsuo06694102015-09-11 13:55:40 -0700914
915Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700916 debuggeeId: string, Required. Identifies the debuggee being debugged. (required)
Takashi Matsuo06694102015-09-11 13:55:40 -0700917 id: string, Breakpoint identifier, unique in the scope of the debuggee. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700918 body: object, The request body.
Takashi Matsuo06694102015-09-11 13:55:40 -0700919 The object takes the form of:
920
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800921{ # Request to update an active breakpoint.
Bu Sun Kim65020912020-05-20 12:08:20 -0700922 &quot;breakpoint&quot;: { # ------------------------------------------------------------------------------ # Required. Updated breakpoint information.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700923 # The field `id` must be set.
924 # The agent must echo all Breakpoint specification fields in the update.
Dan O'Mearadd494642020-05-01 07:42:23 -0700925 # ## Breakpoint (the resource)
926 #
927 # Represents the breakpoint specification, status and results.
Bu Sun Kim65020912020-05-20 12:08:20 -0700928 &quot;canaryExpireTime&quot;: &quot;A String&quot;, # The deadline for the breakpoint to stay in CANARY_ACTIVE state. The value
929 # is meaningless when the breakpoint is not in CANARY_ACTIVE state.
930 &quot;status&quot;: { # Represents a contextual status message. # Breakpoint status.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400931 #
932 # The status includes an error flag and a human readable message.
933 # This field is usually unset. The message can be either
934 # informational or an error message. Regardless, clients should always
935 # display the text message back to the user.
936 #
937 # Error status indicates complete failure of the breakpoint.
938 #
939 # Example (non-final state): `Still loading symbols...`
940 #
941 # Examples (final state):
942 #
943 # * `Invalid line number` referring to location
944 # * `Field f not found in class C` referring to condition
945 # The message can indicate an error or informational status, and refer to
946 # specific parts of the containing object.
947 # For example, the `Breakpoint.status` field can indicate an error referring
948 # to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700949 &quot;isError&quot;: True or False, # Distinguishes errors from informational messages.
950 &quot;description&quot;: { # Represents a message with parameters. # Status message text.
951 &quot;parameters&quot;: [ # Optional parameters to be embedded into the message.
952 &quot;A String&quot;,
Takashi Matsuo06694102015-09-11 13:55:40 -0700953 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700954 &quot;format&quot;: &quot;A String&quot;, # Format template for the message. The `format` uses placeholders `$0`,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400955 # `$1`, etc. to reference parameters. `$$` can be used to denote the `$`
956 # character.
957 #
958 # Examples:
959 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700960 # * `Failed to load &#x27;$0&#x27; which helps debug $1 the first time it
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400961 # is loaded. Again, $0 is very important.`
962 # * `Please pay $$10 to use $0 instead of $1.`
Takashi Matsuo06694102015-09-11 13:55:40 -0700963 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700964 &quot;refersTo&quot;: &quot;A String&quot;, # Reference to which the message applies.
Takashi Matsuo06694102015-09-11 13:55:40 -0700965 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700966 &quot;state&quot;: &quot;A String&quot;, # The current state of the breakpoint.
967 &quot;userEmail&quot;: &quot;A String&quot;, # E-mail address of the user that created this breakpoint
968 &quot;action&quot;: &quot;A String&quot;, # Action that the agent should perform when the code at the
969 # breakpoint location is hit.
970 &quot;logLevel&quot;: &quot;A String&quot;, # Indicates the severity of the log. Only relevant when action is `LOG`.
971 &quot;id&quot;: &quot;A String&quot;, # Breakpoint identifier, unique in the scope of the debuggee.
972 &quot;location&quot;: { # Represents a location in the source code. # Breakpoint source location.
973 &quot;path&quot;: &quot;A String&quot;, # Path to the source file within the source context of the target binary.
974 &quot;column&quot;: 42, # Column within a line. The first column in a line as the value `1`.
975 # Agents that do not support setting breakpoints on specific columns ignore
976 # this field.
977 &quot;line&quot;: 42, # Line inside the file. The first line in the file has the value `1`.
978 },
979 &quot;finalTime&quot;: &quot;A String&quot;, # Time this breakpoint was finalized as seen by the server in seconds
980 # resolution.
981 &quot;variableTable&quot;: [ # The `variable_table` exists to aid with computation, memory and network
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400982 # traffic optimization. It enables storing a variable once and reference
983 # it from multiple variables, including variables stored in the
984 # `variable_table` itself.
985 # For example, the same `this` object, which may appear at many levels of
986 # the stack, can have all of its data stored once in this table. The
987 # stack frame variables then would hold only a reference to it.
988 #
989 # The variable `var_table_index` field is an index into this repeated field.
990 # The stored objects are nameless and get their name from the referencing
991 # variable. The effective variable is a merge of the referencing variable
992 # and the referenced variable.
993 { # Represents a variable or an argument possibly of a compound object type.
994 # Note how the following variables are represented:
995 #
996 # 1) A simple variable:
997 #
998 # int x = 5
999 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001000 # { name: &quot;x&quot;, value: &quot;5&quot;, type: &quot;int&quot; } // Captured variable
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001001 #
1002 # 2) A compound object:
1003 #
1004 # struct T {
1005 # int m1;
1006 # int m2;
1007 # };
1008 # T x = { 3, 7 };
1009 #
1010 # { // Captured variable
Bu Sun Kim65020912020-05-20 12:08:20 -07001011 # name: &quot;x&quot;,
1012 # type: &quot;T&quot;,
1013 # members { name: &quot;m1&quot;, value: &quot;3&quot;, type: &quot;int&quot; },
1014 # members { name: &quot;m2&quot;, value: &quot;7&quot;, type: &quot;int&quot; }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001015 # }
1016 #
1017 # 3) A pointer where the pointee was captured:
1018 #
1019 # T x = { 3, 7 };
Dan O'Mearadd494642020-05-01 07:42:23 -07001020 # T* p = &amp;x;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001021 #
1022 # { // Captured variable
Bu Sun Kim65020912020-05-20 12:08:20 -07001023 # name: &quot;p&quot;,
1024 # type: &quot;T*&quot;,
1025 # value: &quot;0x00500500&quot;,
1026 # members { name: &quot;m1&quot;, value: &quot;3&quot;, type: &quot;int&quot; },
1027 # members { name: &quot;m2&quot;, value: &quot;7&quot;, type: &quot;int&quot; }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001028 # }
1029 #
1030 # 4) A pointer where the pointee was not captured:
1031 #
1032 # T* p = new T;
1033 #
1034 # { // Captured variable
Bu Sun Kim65020912020-05-20 12:08:20 -07001035 # name: &quot;p&quot;,
1036 # type: &quot;T*&quot;,
1037 # value: &quot;0x00400400&quot;
1038 # status { is_error: true, description { format: &quot;unavailable&quot; } }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001039 # }
1040 #
1041 # The status should describe the reason for the missing value,
Dan O'Mearadd494642020-05-01 07:42:23 -07001042 # such as `&lt;optimized out&gt;`, `&lt;inaccessible&gt;`, `&lt;pointers limit reached&gt;`.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001043 #
1044 # Note that a null pointer should not have members.
1045 #
1046 # 5) An unnamed value:
1047 #
1048 # int* p = new int(7);
1049 #
1050 # { // Captured variable
Bu Sun Kim65020912020-05-20 12:08:20 -07001051 # name: &quot;p&quot;,
1052 # value: &quot;0x00500500&quot;,
1053 # type: &quot;int*&quot;,
1054 # members { value: &quot;7&quot;, type: &quot;int&quot; } }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001055 #
1056 # 6) An unnamed pointer where the pointee was not captured:
1057 #
1058 # int* p = new int(7);
Dan O'Mearadd494642020-05-01 07:42:23 -07001059 # int** pp = &amp;p;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001060 #
1061 # { // Captured variable
Bu Sun Kim65020912020-05-20 12:08:20 -07001062 # name: &quot;pp&quot;,
1063 # value: &quot;0x00500500&quot;,
1064 # type: &quot;int**&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001065 # members {
Bu Sun Kim65020912020-05-20 12:08:20 -07001066 # value: &quot;0x00400400&quot;,
1067 # type: &quot;int*&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001068 # status {
1069 # is_error: true,
Bu Sun Kim65020912020-05-20 12:08:20 -07001070 # description: { format: &quot;unavailable&quot; } }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001071 # }
1072 # }
1073 # }
1074 #
1075 # To optimize computation, memory and network traffic, variables that
1076 # repeat in the output multiple times can be stored once in a shared
1077 # variable table and be referenced using the `var_table_index` field. The
1078 # variables stored in the shared table are nameless and are essentially
1079 # a partition of the complete variable. To reconstruct the complete
1080 # variable, merge the referencing variable with the referenced variable.
1081 #
1082 # When using the shared variable table, the following variables:
1083 #
1084 # T x = { 3, 7 };
Dan O'Mearadd494642020-05-01 07:42:23 -07001085 # T* p = &amp;x;
1086 # T&amp; r = x;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001087 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001088 # { name: &quot;x&quot;, var_table_index: 3, type: &quot;T&quot; } // Captured variables
1089 # { name: &quot;p&quot;, value &quot;0x00500500&quot;, type=&quot;T*&quot;, var_table_index: 3 }
1090 # { name: &quot;r&quot;, type=&quot;T&amp;&quot;, var_table_index: 3 }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001091 #
1092 # { // Shared variable table entry #3:
Bu Sun Kim65020912020-05-20 12:08:20 -07001093 # members { name: &quot;m1&quot;, value: &quot;3&quot;, type: &quot;int&quot; },
1094 # members { name: &quot;m2&quot;, value: &quot;7&quot;, type: &quot;int&quot; }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001095 # }
1096 #
1097 # Note that the pointer address is stored with the referencing variable
1098 # and not with the referenced variable. This allows the referenced variable
1099 # to be shared between pointers and references.
1100 #
1101 # The type field is optional. The debugger agent may or may not support it.
Bu Sun Kim65020912020-05-20 12:08:20 -07001102 &quot;members&quot;: [ # Members contained or pointed to by the variable.
1103 # Object with schema name: Variable
1104 ],
1105 &quot;status&quot;: { # Represents a contextual status message. # Status associated with the variable. This field will usually stay
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001106 # unset. A status of a single variable only applies to that variable or
1107 # expression. The rest of breakpoint data still remains valid. Variables
1108 # might be reported in error state even when breakpoint is not in final
1109 # state.
1110 #
1111 # The message may refer to variable name with `refers_to` set to
1112 # `VARIABLE_NAME`. Alternatively `refers_to` will be set to `VARIABLE_VALUE`.
1113 # In either case variable value and members will be unset.
1114 #
1115 # Example of error message applied to name: `Invalid expression syntax`.
1116 #
1117 # Example of information message applied to value: `Not captured`.
1118 #
1119 # Examples of error message applied to value:
1120 #
1121 # * `Malformed string`,
1122 # * `Field f not found in class C`
1123 # * `Null pointer dereference`
1124 # The message can indicate an error or informational status, and refer to
1125 # specific parts of the containing object.
1126 # For example, the `Breakpoint.status` field can indicate an error referring
1127 # to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001128 &quot;isError&quot;: True or False, # Distinguishes errors from informational messages.
1129 &quot;description&quot;: { # Represents a message with parameters. # Status message text.
1130 &quot;parameters&quot;: [ # Optional parameters to be embedded into the message.
1131 &quot;A String&quot;,
Takashi Matsuo06694102015-09-11 13:55:40 -07001132 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001133 &quot;format&quot;: &quot;A String&quot;, # Format template for the message. The `format` uses placeholders `$0`,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001134 # `$1`, etc. to reference parameters. `$$` can be used to denote the `$`
1135 # character.
1136 #
1137 # Examples:
1138 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001139 # * `Failed to load &#x27;$0&#x27; which helps debug $1 the first time it
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001140 # is loaded. Again, $0 is very important.`
1141 # * `Please pay $$10 to use $0 instead of $1.`
Takashi Matsuo06694102015-09-11 13:55:40 -07001142 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001143 &quot;refersTo&quot;: &quot;A String&quot;, # Reference to which the message applies.
Takashi Matsuo06694102015-09-11 13:55:40 -07001144 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001145 &quot;name&quot;: &quot;A String&quot;, # Name of the variable, if any.
1146 &quot;type&quot;: &quot;A String&quot;, # Variable type (e.g. `MyClass`). If the variable is split with
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001147 # `var_table_index`, `type` goes next to `value`. The interpretation of
1148 # a type is agent specific. It is recommended to include the dynamic type
1149 # rather than a static type of an object.
Bu Sun Kim65020912020-05-20 12:08:20 -07001150 &quot;varTableIndex&quot;: 42, # Reference to a variable in the shared variable table. More than
1151 # one variable can reference the same variable in the table. The
1152 # `var_table_index` field is an index into `variable_table` in Breakpoint.
1153 &quot;value&quot;: &quot;A String&quot;, # Simple value of the variable.
Takashi Matsuo06694102015-09-11 13:55:40 -07001154 },
1155 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001156 &quot;createTime&quot;: &quot;A String&quot;, # Time this breakpoint was created by the server in seconds resolution.
1157 &quot;logMessageFormat&quot;: &quot;A String&quot;, # Only relevant when action is `LOG`. Defines the message to log when
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001158 # the breakpoint hits. The message may include parameter placeholders `$0`,
1159 # `$1`, etc. These placeholders are replaced with the evaluated value
1160 # of the appropriate expression. Expressions not referenced in
1161 # `log_message_format` are not logged.
1162 #
1163 # Example: `Message received, id = $0, count = $1` with
1164 # `expressions` = `[ message.id, message.count ]`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001165 &quot;labels&quot;: { # A set of custom breakpoint properties, populated by the agent, to be
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001166 # displayed to the user.
Bu Sun Kim65020912020-05-20 12:08:20 -07001167 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001168 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001169 &quot;expressions&quot;: [ # List of read-only expressions to evaluate at the breakpoint location.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001170 # The expressions are composed using expressions in the programming language
1171 # at the source location. If the breakpoint action is `LOG`, the evaluated
1172 # expressions are included in log statements.
Bu Sun Kim65020912020-05-20 12:08:20 -07001173 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001174 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001175 &quot;evaluatedExpressions&quot;: [ # Values of evaluated expressions at breakpoint time.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001176 # The evaluated expressions appear in exactly the same order they
1177 # are listed in the `expressions` field.
1178 # The `name` field holds the original expression text, the `value` or
1179 # `members` field holds the result of the evaluated expression.
1180 # If the expression cannot be evaluated, the `status` inside the `Variable`
1181 # will indicate an error and contain the error text.
1182 { # Represents a variable or an argument possibly of a compound object type.
1183 # Note how the following variables are represented:
1184 #
1185 # 1) A simple variable:
1186 #
1187 # int x = 5
1188 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001189 # { name: &quot;x&quot;, value: &quot;5&quot;, type: &quot;int&quot; } // Captured variable
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001190 #
1191 # 2) A compound object:
1192 #
1193 # struct T {
1194 # int m1;
1195 # int m2;
1196 # };
1197 # T x = { 3, 7 };
1198 #
1199 # { // Captured variable
Bu Sun Kim65020912020-05-20 12:08:20 -07001200 # name: &quot;x&quot;,
1201 # type: &quot;T&quot;,
1202 # members { name: &quot;m1&quot;, value: &quot;3&quot;, type: &quot;int&quot; },
1203 # members { name: &quot;m2&quot;, value: &quot;7&quot;, type: &quot;int&quot; }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001204 # }
1205 #
1206 # 3) A pointer where the pointee was captured:
1207 #
1208 # T x = { 3, 7 };
Dan O'Mearadd494642020-05-01 07:42:23 -07001209 # T* p = &amp;x;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001210 #
1211 # { // Captured variable
Bu Sun Kim65020912020-05-20 12:08:20 -07001212 # name: &quot;p&quot;,
1213 # type: &quot;T*&quot;,
1214 # value: &quot;0x00500500&quot;,
1215 # members { name: &quot;m1&quot;, value: &quot;3&quot;, type: &quot;int&quot; },
1216 # members { name: &quot;m2&quot;, value: &quot;7&quot;, type: &quot;int&quot; }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001217 # }
1218 #
1219 # 4) A pointer where the pointee was not captured:
1220 #
1221 # T* p = new T;
1222 #
1223 # { // Captured variable
Bu Sun Kim65020912020-05-20 12:08:20 -07001224 # name: &quot;p&quot;,
1225 # type: &quot;T*&quot;,
1226 # value: &quot;0x00400400&quot;
1227 # status { is_error: true, description { format: &quot;unavailable&quot; } }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001228 # }
1229 #
1230 # The status should describe the reason for the missing value,
Dan O'Mearadd494642020-05-01 07:42:23 -07001231 # such as `&lt;optimized out&gt;`, `&lt;inaccessible&gt;`, `&lt;pointers limit reached&gt;`.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001232 #
1233 # Note that a null pointer should not have members.
1234 #
1235 # 5) An unnamed value:
1236 #
1237 # int* p = new int(7);
1238 #
1239 # { // Captured variable
Bu Sun Kim65020912020-05-20 12:08:20 -07001240 # name: &quot;p&quot;,
1241 # value: &quot;0x00500500&quot;,
1242 # type: &quot;int*&quot;,
1243 # members { value: &quot;7&quot;, type: &quot;int&quot; } }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001244 #
1245 # 6) An unnamed pointer where the pointee was not captured:
1246 #
1247 # int* p = new int(7);
Dan O'Mearadd494642020-05-01 07:42:23 -07001248 # int** pp = &amp;p;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001249 #
1250 # { // Captured variable
Bu Sun Kim65020912020-05-20 12:08:20 -07001251 # name: &quot;pp&quot;,
1252 # value: &quot;0x00500500&quot;,
1253 # type: &quot;int**&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001254 # members {
Bu Sun Kim65020912020-05-20 12:08:20 -07001255 # value: &quot;0x00400400&quot;,
1256 # type: &quot;int*&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001257 # status {
1258 # is_error: true,
Bu Sun Kim65020912020-05-20 12:08:20 -07001259 # description: { format: &quot;unavailable&quot; } }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001260 # }
1261 # }
1262 # }
1263 #
1264 # To optimize computation, memory and network traffic, variables that
1265 # repeat in the output multiple times can be stored once in a shared
1266 # variable table and be referenced using the `var_table_index` field. The
1267 # variables stored in the shared table are nameless and are essentially
1268 # a partition of the complete variable. To reconstruct the complete
1269 # variable, merge the referencing variable with the referenced variable.
1270 #
1271 # When using the shared variable table, the following variables:
1272 #
1273 # T x = { 3, 7 };
Dan O'Mearadd494642020-05-01 07:42:23 -07001274 # T* p = &amp;x;
1275 # T&amp; r = x;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001276 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001277 # { name: &quot;x&quot;, var_table_index: 3, type: &quot;T&quot; } // Captured variables
1278 # { name: &quot;p&quot;, value &quot;0x00500500&quot;, type=&quot;T*&quot;, var_table_index: 3 }
1279 # { name: &quot;r&quot;, type=&quot;T&amp;&quot;, var_table_index: 3 }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001280 #
1281 # { // Shared variable table entry #3:
Bu Sun Kim65020912020-05-20 12:08:20 -07001282 # members { name: &quot;m1&quot;, value: &quot;3&quot;, type: &quot;int&quot; },
1283 # members { name: &quot;m2&quot;, value: &quot;7&quot;, type: &quot;int&quot; }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001284 # }
1285 #
1286 # Note that the pointer address is stored with the referencing variable
1287 # and not with the referenced variable. This allows the referenced variable
1288 # to be shared between pointers and references.
1289 #
1290 # The type field is optional. The debugger agent may or may not support it.
Bu Sun Kim65020912020-05-20 12:08:20 -07001291 &quot;members&quot;: [ # Members contained or pointed to by the variable.
1292 # Object with schema name: Variable
1293 ],
1294 &quot;status&quot;: { # Represents a contextual status message. # Status associated with the variable. This field will usually stay
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001295 # unset. A status of a single variable only applies to that variable or
1296 # expression. The rest of breakpoint data still remains valid. Variables
1297 # might be reported in error state even when breakpoint is not in final
1298 # state.
1299 #
1300 # The message may refer to variable name with `refers_to` set to
1301 # `VARIABLE_NAME`. Alternatively `refers_to` will be set to `VARIABLE_VALUE`.
1302 # In either case variable value and members will be unset.
1303 #
1304 # Example of error message applied to name: `Invalid expression syntax`.
1305 #
1306 # Example of information message applied to value: `Not captured`.
1307 #
1308 # Examples of error message applied to value:
1309 #
1310 # * `Malformed string`,
1311 # * `Field f not found in class C`
1312 # * `Null pointer dereference`
1313 # The message can indicate an error or informational status, and refer to
1314 # specific parts of the containing object.
1315 # For example, the `Breakpoint.status` field can indicate an error referring
1316 # to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001317 &quot;isError&quot;: True or False, # Distinguishes errors from informational messages.
1318 &quot;description&quot;: { # Represents a message with parameters. # Status message text.
1319 &quot;parameters&quot;: [ # Optional parameters to be embedded into the message.
1320 &quot;A String&quot;,
Takashi Matsuo06694102015-09-11 13:55:40 -07001321 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001322 &quot;format&quot;: &quot;A String&quot;, # Format template for the message. The `format` uses placeholders `$0`,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001323 # `$1`, etc. to reference parameters. `$$` can be used to denote the `$`
1324 # character.
1325 #
1326 # Examples:
1327 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001328 # * `Failed to load &#x27;$0&#x27; which helps debug $1 the first time it
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001329 # is loaded. Again, $0 is very important.`
1330 # * `Please pay $$10 to use $0 instead of $1.`
Takashi Matsuo06694102015-09-11 13:55:40 -07001331 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001332 &quot;refersTo&quot;: &quot;A String&quot;, # Reference to which the message applies.
Takashi Matsuo06694102015-09-11 13:55:40 -07001333 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001334 &quot;name&quot;: &quot;A String&quot;, # Name of the variable, if any.
1335 &quot;type&quot;: &quot;A String&quot;, # Variable type (e.g. `MyClass`). If the variable is split with
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001336 # `var_table_index`, `type` goes next to `value`. The interpretation of
1337 # a type is agent specific. It is recommended to include the dynamic type
1338 # rather than a static type of an object.
Bu Sun Kim65020912020-05-20 12:08:20 -07001339 &quot;varTableIndex&quot;: 42, # Reference to a variable in the shared variable table. More than
1340 # one variable can reference the same variable in the table. The
1341 # `var_table_index` field is an index into `variable_table` in Breakpoint.
1342 &quot;value&quot;: &quot;A String&quot;, # Simple value of the variable.
Takashi Matsuo06694102015-09-11 13:55:40 -07001343 },
1344 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001345 &quot;isFinalState&quot;: True or False, # When true, indicates that this is a final result and the
1346 # breakpoint state will not change from here on.
1347 &quot;stackFrames&quot;: [ # The stack at breakpoint time, where stack_frames[0] represents the most
1348 # recently entered function.
1349 { # Represents a stack frame context.
1350 &quot;arguments&quot;: [ # Set of arguments passed to this function.
1351 # Note that this might not be populated for all stack frames.
1352 { # Represents a variable or an argument possibly of a compound object type.
1353 # Note how the following variables are represented:
1354 #
1355 # 1) A simple variable:
1356 #
1357 # int x = 5
1358 #
1359 # { name: &quot;x&quot;, value: &quot;5&quot;, type: &quot;int&quot; } // Captured variable
1360 #
1361 # 2) A compound object:
1362 #
1363 # struct T {
1364 # int m1;
1365 # int m2;
1366 # };
1367 # T x = { 3, 7 };
1368 #
1369 # { // Captured variable
1370 # name: &quot;x&quot;,
1371 # type: &quot;T&quot;,
1372 # members { name: &quot;m1&quot;, value: &quot;3&quot;, type: &quot;int&quot; },
1373 # members { name: &quot;m2&quot;, value: &quot;7&quot;, type: &quot;int&quot; }
1374 # }
1375 #
1376 # 3) A pointer where the pointee was captured:
1377 #
1378 # T x = { 3, 7 };
1379 # T* p = &amp;x;
1380 #
1381 # { // Captured variable
1382 # name: &quot;p&quot;,
1383 # type: &quot;T*&quot;,
1384 # value: &quot;0x00500500&quot;,
1385 # members { name: &quot;m1&quot;, value: &quot;3&quot;, type: &quot;int&quot; },
1386 # members { name: &quot;m2&quot;, value: &quot;7&quot;, type: &quot;int&quot; }
1387 # }
1388 #
1389 # 4) A pointer where the pointee was not captured:
1390 #
1391 # T* p = new T;
1392 #
1393 # { // Captured variable
1394 # name: &quot;p&quot;,
1395 # type: &quot;T*&quot;,
1396 # value: &quot;0x00400400&quot;
1397 # status { is_error: true, description { format: &quot;unavailable&quot; } }
1398 # }
1399 #
1400 # The status should describe the reason for the missing value,
1401 # such as `&lt;optimized out&gt;`, `&lt;inaccessible&gt;`, `&lt;pointers limit reached&gt;`.
1402 #
1403 # Note that a null pointer should not have members.
1404 #
1405 # 5) An unnamed value:
1406 #
1407 # int* p = new int(7);
1408 #
1409 # { // Captured variable
1410 # name: &quot;p&quot;,
1411 # value: &quot;0x00500500&quot;,
1412 # type: &quot;int*&quot;,
1413 # members { value: &quot;7&quot;, type: &quot;int&quot; } }
1414 #
1415 # 6) An unnamed pointer where the pointee was not captured:
1416 #
1417 # int* p = new int(7);
1418 # int** pp = &amp;p;
1419 #
1420 # { // Captured variable
1421 # name: &quot;pp&quot;,
1422 # value: &quot;0x00500500&quot;,
1423 # type: &quot;int**&quot;,
1424 # members {
1425 # value: &quot;0x00400400&quot;,
1426 # type: &quot;int*&quot;
1427 # status {
1428 # is_error: true,
1429 # description: { format: &quot;unavailable&quot; } }
1430 # }
1431 # }
1432 # }
1433 #
1434 # To optimize computation, memory and network traffic, variables that
1435 # repeat in the output multiple times can be stored once in a shared
1436 # variable table and be referenced using the `var_table_index` field. The
1437 # variables stored in the shared table are nameless and are essentially
1438 # a partition of the complete variable. To reconstruct the complete
1439 # variable, merge the referencing variable with the referenced variable.
1440 #
1441 # When using the shared variable table, the following variables:
1442 #
1443 # T x = { 3, 7 };
1444 # T* p = &amp;x;
1445 # T&amp; r = x;
1446 #
1447 # { name: &quot;x&quot;, var_table_index: 3, type: &quot;T&quot; } // Captured variables
1448 # { name: &quot;p&quot;, value &quot;0x00500500&quot;, type=&quot;T*&quot;, var_table_index: 3 }
1449 # { name: &quot;r&quot;, type=&quot;T&amp;&quot;, var_table_index: 3 }
1450 #
1451 # { // Shared variable table entry #3:
1452 # members { name: &quot;m1&quot;, value: &quot;3&quot;, type: &quot;int&quot; },
1453 # members { name: &quot;m2&quot;, value: &quot;7&quot;, type: &quot;int&quot; }
1454 # }
1455 #
1456 # Note that the pointer address is stored with the referencing variable
1457 # and not with the referenced variable. This allows the referenced variable
1458 # to be shared between pointers and references.
1459 #
1460 # The type field is optional. The debugger agent may or may not support it.
1461 &quot;members&quot;: [ # Members contained or pointed to by the variable.
1462 # Object with schema name: Variable
1463 ],
1464 &quot;status&quot;: { # Represents a contextual status message. # Status associated with the variable. This field will usually stay
1465 # unset. A status of a single variable only applies to that variable or
1466 # expression. The rest of breakpoint data still remains valid. Variables
1467 # might be reported in error state even when breakpoint is not in final
1468 # state.
1469 #
1470 # The message may refer to variable name with `refers_to` set to
1471 # `VARIABLE_NAME`. Alternatively `refers_to` will be set to `VARIABLE_VALUE`.
1472 # In either case variable value and members will be unset.
1473 #
1474 # Example of error message applied to name: `Invalid expression syntax`.
1475 #
1476 # Example of information message applied to value: `Not captured`.
1477 #
1478 # Examples of error message applied to value:
1479 #
1480 # * `Malformed string`,
1481 # * `Field f not found in class C`
1482 # * `Null pointer dereference`
1483 # The message can indicate an error or informational status, and refer to
1484 # specific parts of the containing object.
1485 # For example, the `Breakpoint.status` field can indicate an error referring
1486 # to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
1487 &quot;isError&quot;: True or False, # Distinguishes errors from informational messages.
1488 &quot;description&quot;: { # Represents a message with parameters. # Status message text.
1489 &quot;parameters&quot;: [ # Optional parameters to be embedded into the message.
1490 &quot;A String&quot;,
1491 ],
1492 &quot;format&quot;: &quot;A String&quot;, # Format template for the message. The `format` uses placeholders `$0`,
1493 # `$1`, etc. to reference parameters. `$$` can be used to denote the `$`
1494 # character.
1495 #
1496 # Examples:
1497 #
1498 # * `Failed to load &#x27;$0&#x27; which helps debug $1 the first time it
1499 # is loaded. Again, $0 is very important.`
1500 # * `Please pay $$10 to use $0 instead of $1.`
1501 },
1502 &quot;refersTo&quot;: &quot;A String&quot;, # Reference to which the message applies.
1503 },
1504 &quot;name&quot;: &quot;A String&quot;, # Name of the variable, if any.
1505 &quot;type&quot;: &quot;A String&quot;, # Variable type (e.g. `MyClass`). If the variable is split with
1506 # `var_table_index`, `type` goes next to `value`. The interpretation of
1507 # a type is agent specific. It is recommended to include the dynamic type
1508 # rather than a static type of an object.
1509 &quot;varTableIndex&quot;: 42, # Reference to a variable in the shared variable table. More than
1510 # one variable can reference the same variable in the table. The
1511 # `var_table_index` field is an index into `variable_table` in Breakpoint.
1512 &quot;value&quot;: &quot;A String&quot;, # Simple value of the variable.
1513 },
1514 ],
1515 &quot;locals&quot;: [ # Set of local variables at the stack frame location.
1516 # Note that this might not be populated for all stack frames.
1517 { # Represents a variable or an argument possibly of a compound object type.
1518 # Note how the following variables are represented:
1519 #
1520 # 1) A simple variable:
1521 #
1522 # int x = 5
1523 #
1524 # { name: &quot;x&quot;, value: &quot;5&quot;, type: &quot;int&quot; } // Captured variable
1525 #
1526 # 2) A compound object:
1527 #
1528 # struct T {
1529 # int m1;
1530 # int m2;
1531 # };
1532 # T x = { 3, 7 };
1533 #
1534 # { // Captured variable
1535 # name: &quot;x&quot;,
1536 # type: &quot;T&quot;,
1537 # members { name: &quot;m1&quot;, value: &quot;3&quot;, type: &quot;int&quot; },
1538 # members { name: &quot;m2&quot;, value: &quot;7&quot;, type: &quot;int&quot; }
1539 # }
1540 #
1541 # 3) A pointer where the pointee was captured:
1542 #
1543 # T x = { 3, 7 };
1544 # T* p = &amp;x;
1545 #
1546 # { // Captured variable
1547 # name: &quot;p&quot;,
1548 # type: &quot;T*&quot;,
1549 # value: &quot;0x00500500&quot;,
1550 # members { name: &quot;m1&quot;, value: &quot;3&quot;, type: &quot;int&quot; },
1551 # members { name: &quot;m2&quot;, value: &quot;7&quot;, type: &quot;int&quot; }
1552 # }
1553 #
1554 # 4) A pointer where the pointee was not captured:
1555 #
1556 # T* p = new T;
1557 #
1558 # { // Captured variable
1559 # name: &quot;p&quot;,
1560 # type: &quot;T*&quot;,
1561 # value: &quot;0x00400400&quot;
1562 # status { is_error: true, description { format: &quot;unavailable&quot; } }
1563 # }
1564 #
1565 # The status should describe the reason for the missing value,
1566 # such as `&lt;optimized out&gt;`, `&lt;inaccessible&gt;`, `&lt;pointers limit reached&gt;`.
1567 #
1568 # Note that a null pointer should not have members.
1569 #
1570 # 5) An unnamed value:
1571 #
1572 # int* p = new int(7);
1573 #
1574 # { // Captured variable
1575 # name: &quot;p&quot;,
1576 # value: &quot;0x00500500&quot;,
1577 # type: &quot;int*&quot;,
1578 # members { value: &quot;7&quot;, type: &quot;int&quot; } }
1579 #
1580 # 6) An unnamed pointer where the pointee was not captured:
1581 #
1582 # int* p = new int(7);
1583 # int** pp = &amp;p;
1584 #
1585 # { // Captured variable
1586 # name: &quot;pp&quot;,
1587 # value: &quot;0x00500500&quot;,
1588 # type: &quot;int**&quot;,
1589 # members {
1590 # value: &quot;0x00400400&quot;,
1591 # type: &quot;int*&quot;
1592 # status {
1593 # is_error: true,
1594 # description: { format: &quot;unavailable&quot; } }
1595 # }
1596 # }
1597 # }
1598 #
1599 # To optimize computation, memory and network traffic, variables that
1600 # repeat in the output multiple times can be stored once in a shared
1601 # variable table and be referenced using the `var_table_index` field. The
1602 # variables stored in the shared table are nameless and are essentially
1603 # a partition of the complete variable. To reconstruct the complete
1604 # variable, merge the referencing variable with the referenced variable.
1605 #
1606 # When using the shared variable table, the following variables:
1607 #
1608 # T x = { 3, 7 };
1609 # T* p = &amp;x;
1610 # T&amp; r = x;
1611 #
1612 # { name: &quot;x&quot;, var_table_index: 3, type: &quot;T&quot; } // Captured variables
1613 # { name: &quot;p&quot;, value &quot;0x00500500&quot;, type=&quot;T*&quot;, var_table_index: 3 }
1614 # { name: &quot;r&quot;, type=&quot;T&amp;&quot;, var_table_index: 3 }
1615 #
1616 # { // Shared variable table entry #3:
1617 # members { name: &quot;m1&quot;, value: &quot;3&quot;, type: &quot;int&quot; },
1618 # members { name: &quot;m2&quot;, value: &quot;7&quot;, type: &quot;int&quot; }
1619 # }
1620 #
1621 # Note that the pointer address is stored with the referencing variable
1622 # and not with the referenced variable. This allows the referenced variable
1623 # to be shared between pointers and references.
1624 #
1625 # The type field is optional. The debugger agent may or may not support it.
1626 &quot;members&quot;: [ # Members contained or pointed to by the variable.
1627 # Object with schema name: Variable
1628 ],
1629 &quot;status&quot;: { # Represents a contextual status message. # Status associated with the variable. This field will usually stay
1630 # unset. A status of a single variable only applies to that variable or
1631 # expression. The rest of breakpoint data still remains valid. Variables
1632 # might be reported in error state even when breakpoint is not in final
1633 # state.
1634 #
1635 # The message may refer to variable name with `refers_to` set to
1636 # `VARIABLE_NAME`. Alternatively `refers_to` will be set to `VARIABLE_VALUE`.
1637 # In either case variable value and members will be unset.
1638 #
1639 # Example of error message applied to name: `Invalid expression syntax`.
1640 #
1641 # Example of information message applied to value: `Not captured`.
1642 #
1643 # Examples of error message applied to value:
1644 #
1645 # * `Malformed string`,
1646 # * `Field f not found in class C`
1647 # * `Null pointer dereference`
1648 # The message can indicate an error or informational status, and refer to
1649 # specific parts of the containing object.
1650 # For example, the `Breakpoint.status` field can indicate an error referring
1651 # to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
1652 &quot;isError&quot;: True or False, # Distinguishes errors from informational messages.
1653 &quot;description&quot;: { # Represents a message with parameters. # Status message text.
1654 &quot;parameters&quot;: [ # Optional parameters to be embedded into the message.
1655 &quot;A String&quot;,
1656 ],
1657 &quot;format&quot;: &quot;A String&quot;, # Format template for the message. The `format` uses placeholders `$0`,
1658 # `$1`, etc. to reference parameters. `$$` can be used to denote the `$`
1659 # character.
1660 #
1661 # Examples:
1662 #
1663 # * `Failed to load &#x27;$0&#x27; which helps debug $1 the first time it
1664 # is loaded. Again, $0 is very important.`
1665 # * `Please pay $$10 to use $0 instead of $1.`
1666 },
1667 &quot;refersTo&quot;: &quot;A String&quot;, # Reference to which the message applies.
1668 },
1669 &quot;name&quot;: &quot;A String&quot;, # Name of the variable, if any.
1670 &quot;type&quot;: &quot;A String&quot;, # Variable type (e.g. `MyClass`). If the variable is split with
1671 # `var_table_index`, `type` goes next to `value`. The interpretation of
1672 # a type is agent specific. It is recommended to include the dynamic type
1673 # rather than a static type of an object.
1674 &quot;varTableIndex&quot;: 42, # Reference to a variable in the shared variable table. More than
1675 # one variable can reference the same variable in the table. The
1676 # `var_table_index` field is an index into `variable_table` in Breakpoint.
1677 &quot;value&quot;: &quot;A String&quot;, # Simple value of the variable.
1678 },
1679 ],
1680 &quot;location&quot;: { # Represents a location in the source code. # Source location of the call site.
1681 &quot;path&quot;: &quot;A String&quot;, # Path to the source file within the source context of the target binary.
1682 &quot;column&quot;: 42, # Column within a line. The first column in a line as the value `1`.
1683 # Agents that do not support setting breakpoints on specific columns ignore
1684 # this field.
1685 &quot;line&quot;: 42, # Line inside the file. The first line in the file has the value `1`.
1686 },
1687 &quot;function&quot;: &quot;A String&quot;, # Demangled function name at the call site.
1688 },
1689 ],
1690 &quot;condition&quot;: &quot;A String&quot;, # Condition that triggers the breakpoint.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001691 # The condition is a compound boolean expression composed using expressions
1692 # in a programming language at the source location.
Takashi Matsuo06694102015-09-11 13:55:40 -07001693 },
1694 }
1695
1696 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001697 Allowed values
1698 1 - v1 error format
1699 2 - v2 error format
Takashi Matsuo06694102015-09-11 13:55:40 -07001700
1701Returns:
1702 An object of the form:
1703
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001704 { # Response for updating an active breakpoint.
1705 # The message is defined to allow future extensions.
Takashi Matsuo06694102015-09-11 13:55:40 -07001706 }</pre>
1707</div>
1708
1709</body></html>