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

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

Overview

Represents a stack frame context.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StackFrame

Returns a new instance of StackFrame.



880
881
882
# File 'lib/google/apis/clouddebugger_v2/classes.rb', line 880

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



862
863
864
# File 'lib/google/apis/clouddebugger_v2/classes.rb', line 862

def arguments
  @arguments
end

#functionString

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

Returns:

  • (String)


867
868
869
# File 'lib/google/apis/clouddebugger_v2/classes.rb', line 867

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



873
874
875
# File 'lib/google/apis/clouddebugger_v2/classes.rb', line 873

def locals
  @locals
end

#locationGoogle::Apis::ClouddebuggerV2::SourceLocation

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



878
879
880
# File 'lib/google/apis/clouddebugger_v2/classes.rb', line 878

def location
  @location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



885
886
887
888
889
890
# File 'lib/google/apis/clouddebugger_v2/classes.rb', line 885

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