Class: Google::Apis::ClouddebuggerV2::StackFrame

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/clouddebugger_v2/classes.rb,
generated/google/apis/clouddebugger_v2/representations.rb,
generated/google/apis/clouddebugger_v2/representations.rb

Overview

Represents a stack frame context.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ StackFrame

Returns a new instance of StackFrame.



771
772
773
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 771

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#argumentsArray<Google::Apis::ClouddebuggerV2::Variable>

Set of arguments passed to this function. Note that this might not be populated for all stack frames. Corresponds to the JSON property arguments



763
764
765
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 763

def arguments
  @arguments
end

#functionString

Demangled function name at the call site. Corresponds to the JSON property function

Returns:

  • (String)


752
753
754
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 752

def function
  @function
end

#localsArray<Google::Apis::ClouddebuggerV2::Variable>

Set of local variables at the stack frame location. Note that this might not be populated for all stack frames. Corresponds to the JSON property locals



769
770
771
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 769

def locals
  @locals
end

#locationGoogle::Apis::ClouddebuggerV2::SourceLocation

Represents a location in the source code. Corresponds to the JSON property location



757
758
759
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 757

def location
  @location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



776
777
778
779
780
781
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 776

def update!(**args)
  @function = args[:function] if args.key?(:function)
  @location = args[:location] if args.key?(:location)
  @arguments = args[:arguments] if args.key?(:arguments)
  @locals = args[:locals] if args.key?(:locals)
end