google-cloud-debugger 0.32.5 → 0.32.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/cloud/debugger/breakpoint/evaluator.rb +5 -1
- data/lib/google/cloud/debugger/service.rb +1 -1
- data/lib/google/cloud/debugger/v2.rb +35 -35
- data/lib/google/cloud/debugger/v2/controller2_client_config.json +3 -3
- data/lib/google/cloud/debugger/v2/debugger2_client_config.json +5 -5
- data/lib/google/cloud/debugger/v2/doc/google/devtools/clouddebugger/v2/controller.rb +1 -1
- data/lib/google/cloud/debugger/v2/doc/google/devtools/clouddebugger/v2/data.rb +9 -5
- data/lib/google/cloud/debugger/version.rb +1 -1
- data/lib/google/devtools/clouddebugger/v2/controller_services_pb.rb +2 -1
- data/lib/google/devtools/clouddebugger/v2/data_pb.rb +2 -0
- data/lib/google/devtools/clouddebugger/v2/debugger_services_pb.rb +2 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfc1df72a8c1dac4cc22461e3585b5b0f15dd2548897eedf015e161d76356eb7
|
4
|
+
data.tar.gz: 4c39329e42f2c950ce17c19b68fe1910fe854e39b9460e97b06a20be075a23f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f240803624c03f699e641992685374927788dbc581c462b5cbf632ab31e7baf5a4581acb0acdd2e5311967f1ff47f8224999ef48e7bf89f23a12085b846b1634
|
7
|
+
data.tar.gz: d98a99abd03266bdbb4fad60cb41ff488f3635167d42a87cd8dd694ca7342e56436bc54848cc01b3e9e62ea2a61a38b736afe0268938733ada789b8ed002e7c4
|
data/CHANGELOG.md
CHANGED
@@ -82,7 +82,7 @@ module Google
|
|
82
82
|
##
|
83
83
|
# @private Predefined regex. Saves time during runtime.
|
84
84
|
FULL_BYTE_CODE_BLACKLIST_REGEX = /^\d+ #{
|
85
|
-
|
85
|
+
[*BYTE_CODE_BLACKLIST, *LOCAL_BYTE_CODE_BLACKLIST].join '|'
|
86
86
|
}/
|
87
87
|
|
88
88
|
##
|
@@ -953,6 +953,8 @@ module Google
|
|
953
953
|
"""
|
954
954
|
end
|
955
955
|
|
956
|
+
# rubocop:disable Layout/RescueEnsureAlignment
|
957
|
+
|
956
958
|
##
|
957
959
|
# @private Evaluation tracing callback function. This is called
|
958
960
|
# everytime a Ruby function is called during evaluation of
|
@@ -991,6 +993,8 @@ module Google
|
|
991
993
|
)
|
992
994
|
end
|
993
995
|
|
996
|
+
# rubocop:enable Layout/RescueEnsureAlignment
|
997
|
+
|
994
998
|
##
|
995
999
|
# @private Evaluation tracing callback function. This is called
|
996
1000
|
# everytime a C function is called during evaluation of
|
@@ -13,8 +13,8 @@
|
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
15
|
|
16
|
-
require "google/cloud/debugger/v2/debugger2_client"
|
17
16
|
require "google/cloud/debugger/v2/controller2_client"
|
17
|
+
require "google/cloud/debugger/v2/debugger2_client"
|
18
18
|
|
19
19
|
module Google
|
20
20
|
module Cloud
|
@@ -25,8 +25,8 @@ module Google
|
|
25
25
|
# # Ruby Client for Stackdriver Debugger API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
|
26
26
|
#
|
27
27
|
# [Stackdriver Debugger API][Product Documentation]:
|
28
|
-
# Examines the call stack and variables of a running application
|
29
|
-
#
|
28
|
+
# Examines the call stack and variables of a running application without
|
29
|
+
# stopping or slowing it down.
|
30
30
|
# - [Product Documentation][]
|
31
31
|
#
|
32
32
|
# ## Quick Start
|
@@ -80,20 +80,28 @@ module Google
|
|
80
80
|
module V2
|
81
81
|
# rubocop:enable LineLength
|
82
82
|
|
83
|
-
module
|
83
|
+
module Controller2
|
84
84
|
##
|
85
|
-
# The
|
86
|
-
#
|
87
|
-
#
|
88
|
-
# more replicated processes performing the same work.
|
85
|
+
# The Controller service provides the API for orchestrating a collection of
|
86
|
+
# debugger agents to perform debugging tasks. These agents are each attached
|
87
|
+
# to a process of an application which may include one or more replicas.
|
89
88
|
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
#
|
93
|
-
# service, usually by running a debugger agent with the application.
|
89
|
+
# The debugger agents register with the Controller to identify the application
|
90
|
+
# being debugged, the Debuggee. All agents that register with the same data,
|
91
|
+
# represent the same Debuggee, and are assigned the same `debuggee_id`.
|
94
92
|
#
|
95
|
-
# The
|
96
|
-
#
|
93
|
+
# The debugger agents call the Controller to retrieve the list of active
|
94
|
+
# Breakpoints. Agents with the same `debuggee_id` get the same breakpoints
|
95
|
+
# list. An agent that can fulfill the breakpoint request updates the
|
96
|
+
# Controller with the breakpoint result. The controller selects the first
|
97
|
+
# result received and discards the rest of the results.
|
98
|
+
# Agents that poll again for active breakpoints will no longer have
|
99
|
+
# the completed breakpoint in the list and should remove that breakpoint from
|
100
|
+
# their attached process.
|
101
|
+
#
|
102
|
+
# The Controller service does not provide a way to retrieve the results of
|
103
|
+
# a completed breakpoint. This functionality is available using the Debugger
|
104
|
+
# service.
|
97
105
|
#
|
98
106
|
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
|
99
107
|
# Provides the means for authenticating requests made by the client. This parameter can
|
@@ -143,32 +151,24 @@ module Google
|
|
143
151
|
lib_name: lib_name,
|
144
152
|
lib_version: lib_version
|
145
153
|
}.select { |_, v| v != nil }
|
146
|
-
Google::Cloud::Debugger::V2::
|
154
|
+
Google::Cloud::Debugger::V2::Controller2Client.new(**kwargs)
|
147
155
|
end
|
148
156
|
end
|
149
157
|
|
150
|
-
module
|
158
|
+
module Debugger2
|
151
159
|
##
|
152
|
-
# The
|
153
|
-
#
|
154
|
-
#
|
155
|
-
#
|
156
|
-
# The debugger agents register with the Controller to identify the application
|
157
|
-
# being debugged, the Debuggee. All agents that register with the same data,
|
158
|
-
# represent the same Debuggee, and are assigned the same `debuggee_id`.
|
160
|
+
# The Debugger service provides the API that allows users to collect run-time
|
161
|
+
# information from a running application, without stopping or slowing it down
|
162
|
+
# and without modifying its state. An application may include one or
|
163
|
+
# more replicated processes performing the same work.
|
159
164
|
#
|
160
|
-
#
|
161
|
-
#
|
162
|
-
#
|
163
|
-
#
|
164
|
-
# result received and discards the rest of the results.
|
165
|
-
# Agents that poll again for active breakpoints will no longer have
|
166
|
-
# the completed breakpoint in the list and should remove that breakpoint from
|
167
|
-
# their attached process.
|
165
|
+
# A debugged application is represented using the Debuggee concept. The
|
166
|
+
# Debugger service provides a way to query for available debuggees, but does
|
167
|
+
# not provide a way to create one. A debuggee is created using the Controller
|
168
|
+
# service, usually by running a debugger agent with the application.
|
168
169
|
#
|
169
|
-
# The
|
170
|
-
#
|
171
|
-
# service.
|
170
|
+
# The Debugger service enables the client to set one or more Breakpoints on a
|
171
|
+
# Debuggee and collect the results of the set Breakpoints.
|
172
172
|
#
|
173
173
|
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
|
174
174
|
# Provides the means for authenticating requests made by the client. This parameter can
|
@@ -218,7 +218,7 @@ module Google
|
|
218
218
|
lib_name: lib_name,
|
219
219
|
lib_version: lib_version
|
220
220
|
}.select { |_, v| v != nil }
|
221
|
-
Google::Cloud::Debugger::V2::
|
221
|
+
Google::Cloud::Debugger::V2::Debugger2Client.new(**kwargs)
|
222
222
|
end
|
223
223
|
end
|
224
224
|
end
|
@@ -21,17 +21,17 @@
|
|
21
21
|
},
|
22
22
|
"methods": {
|
23
23
|
"RegisterDebuggee": {
|
24
|
-
"timeout_millis":
|
24
|
+
"timeout_millis": 300000,
|
25
25
|
"retry_codes_name": "non_idempotent",
|
26
26
|
"retry_params_name": "default"
|
27
27
|
},
|
28
28
|
"ListActiveBreakpoints": {
|
29
|
-
"timeout_millis":
|
29
|
+
"timeout_millis": 300000,
|
30
30
|
"retry_codes_name": "idempotent",
|
31
31
|
"retry_params_name": "default"
|
32
32
|
},
|
33
33
|
"UpdateActiveBreakpoint": {
|
34
|
-
"timeout_millis":
|
34
|
+
"timeout_millis": 300000,
|
35
35
|
"retry_codes_name": "idempotent",
|
36
36
|
"retry_params_name": "default"
|
37
37
|
}
|
@@ -21,27 +21,27 @@
|
|
21
21
|
},
|
22
22
|
"methods": {
|
23
23
|
"SetBreakpoint": {
|
24
|
-
"timeout_millis":
|
24
|
+
"timeout_millis": 300000,
|
25
25
|
"retry_codes_name": "non_idempotent",
|
26
26
|
"retry_params_name": "default"
|
27
27
|
},
|
28
28
|
"GetBreakpoint": {
|
29
|
-
"timeout_millis":
|
29
|
+
"timeout_millis": 300000,
|
30
30
|
"retry_codes_name": "idempotent",
|
31
31
|
"retry_params_name": "default"
|
32
32
|
},
|
33
33
|
"DeleteBreakpoint": {
|
34
|
-
"timeout_millis":
|
34
|
+
"timeout_millis": 300000,
|
35
35
|
"retry_codes_name": "idempotent",
|
36
36
|
"retry_params_name": "default"
|
37
37
|
},
|
38
38
|
"ListBreakpoints": {
|
39
|
-
"timeout_millis":
|
39
|
+
"timeout_millis": 300000,
|
40
40
|
"retry_codes_name": "idempotent",
|
41
41
|
"retry_params_name": "default"
|
42
42
|
},
|
43
43
|
"ListDebuggees": {
|
44
|
-
"timeout_millis":
|
44
|
+
"timeout_millis": 300000,
|
45
45
|
"retry_codes_name": "idempotent",
|
46
46
|
"retry_params_name": "default"
|
47
47
|
}
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# @!attribute [rw] debuggee
|
30
30
|
# @return [Google::Devtools::Clouddebugger::V2::Debuggee]
|
31
31
|
# Debuggee resource.
|
32
|
-
# The field `id` is
|
32
|
+
# The field `id` is guaranteed to be set (in addition to the echoed fields).
|
33
33
|
# If the field `is_disabled` is set to `true`, the agent should disable
|
34
34
|
# itself by removing all breakpoints and detaching from the application.
|
35
35
|
# It should however continue to poll `RegisterDebuggee` until reenabled.
|
@@ -81,6 +81,11 @@ module Google
|
|
81
81
|
# @!attribute [rw] line
|
82
82
|
# @return [Integer]
|
83
83
|
# Line inside the file. The first line in the file has the value `1`.
|
84
|
+
# @!attribute [rw] column
|
85
|
+
# @return [Integer]
|
86
|
+
# Column within a line. The first column in a line as the value `1`.
|
87
|
+
# Agents that do not support setting breakpoints on specific columns ignore
|
88
|
+
# this field.
|
84
89
|
class SourceLocation; end
|
85
90
|
|
86
91
|
# Represents a variable or an argument possibly of a compound object type.
|
@@ -320,7 +325,8 @@ module Google
|
|
320
325
|
# * `Field f not found in class C` referring to condition
|
321
326
|
# @!attribute [rw] stack_frames
|
322
327
|
# @return [Array<Google::Devtools::Clouddebugger::V2::StackFrame>]
|
323
|
-
# The stack at breakpoint time
|
328
|
+
# The stack at breakpoint time, where stack_frames[0] represents the most
|
329
|
+
# recently entered function.
|
324
330
|
# @!attribute [rw] evaluated_expressions
|
325
331
|
# @return [Array<Google::Devtools::Clouddebugger::V2::Variable>]
|
326
332
|
# Values of evaluated expressions at breakpoint time.
|
@@ -389,10 +395,10 @@ module Google
|
|
389
395
|
# Use project number or id when registering a Google Cloud Platform project.
|
390
396
|
# @!attribute [rw] uniquifier
|
391
397
|
# @return [String]
|
392
|
-
# Uniquifier to further
|
398
|
+
# Uniquifier to further distinguish the application.
|
393
399
|
# It is possible that different applications might have identical values in
|
394
400
|
# the debuggee message, thus, incorrectly identified as a single application
|
395
|
-
# by the Controller service. This field adds salt to further
|
401
|
+
# by the Controller service. This field adds salt to further distinguish the
|
396
402
|
# application. Agents should consider seeding this field with value that
|
397
403
|
# identifies the code, binary, configuration and environment.
|
398
404
|
# @!attribute [rw] description
|
@@ -426,8 +432,6 @@ module Google
|
|
426
432
|
# @return [Array<Google::Devtools::Source::V1::ExtendedSourceContext>]
|
427
433
|
# References to the locations and revisions of the source code used in the
|
428
434
|
# deployed application.
|
429
|
-
#
|
430
|
-
# NOTE: this field is experimental and can be ignored.
|
431
435
|
# @!attribute [rw] labels
|
432
436
|
# @return [Hash{String => String}]
|
433
437
|
# A set of custom debuggee properties, populated by the agent, to be
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/devtools/clouddebugger/v2/controller.proto for package 'google.devtools.clouddebugger.v2'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2018 Google LLC.
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -15,6 +15,7 @@
|
|
15
15
|
# See the License for the specific language governing permissions and
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
|
+
#
|
18
19
|
|
19
20
|
|
20
21
|
require 'grpc'
|
@@ -6,6 +6,7 @@ require 'google/protobuf'
|
|
6
6
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
8
|
require 'google/devtools/source/v1/source_context_pb'
|
9
|
+
require 'google/protobuf/duration_pb'
|
9
10
|
require 'google/protobuf/timestamp_pb'
|
10
11
|
require 'google/protobuf/wrappers_pb'
|
11
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -30,6 +31,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
30
31
|
add_message "google.devtools.clouddebugger.v2.SourceLocation" do
|
31
32
|
optional :path, :string, 1
|
32
33
|
optional :line, :int32, 2
|
34
|
+
optional :column, :int32, 3
|
33
35
|
end
|
34
36
|
add_message "google.devtools.clouddebugger.v2.Variable" do
|
35
37
|
optional :name, :string, 1
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/devtools/clouddebugger/v2/debugger.proto for package 'google.devtools.clouddebugger.v2'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2018 Google LLC.
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -15,6 +15,7 @@
|
|
15
15
|
# See the License for the specific language governing permissions and
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
|
+
#
|
18
19
|
|
19
20
|
|
20
21
|
require 'grpc'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-debugger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.32.
|
4
|
+
version: 0.32.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Heng Xiong
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: binding_of_caller
|
@@ -170,14 +170,14 @@ dependencies:
|
|
170
170
|
requirements:
|
171
171
|
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 0.
|
173
|
+
version: 0.59.2
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: 0.
|
180
|
+
version: 0.59.2
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: simplecov
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|