// Copyright © 2020 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
namespace CefSharp.DevTools.Debugger
{
///
/// JavaScript call frame. Array of call frames form the call stack.
///
[System.Runtime.Serialization.DataContractAttribute]
public class CallFrame : CefSharp.DevTools.DevToolsDomainEntityBase
{
///
/// Call frame identifier. This identifier is only valid while the virtual machine is paused.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("callFrameId"), IsRequired = (true))]
public string CallFrameId
{
get;
set;
}
///
/// Name of the JavaScript function called on this call frame.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("functionName"), IsRequired = (true))]
public string FunctionName
{
get;
set;
}
///
/// Location in the source code.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("functionLocation"), IsRequired = (false))]
public CefSharp.DevTools.Debugger.Location FunctionLocation
{
get;
set;
}
///
/// Location in the source code.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("location"), IsRequired = (true))]
public CefSharp.DevTools.Debugger.Location Location
{
get;
set;
}
///
/// JavaScript script name or url.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))]
public string Url
{
get;
set;
}
///
/// Scope chain for this call frame.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("scopeChain"), IsRequired = (true))]
public System.Collections.Generic.IList ScopeChain
{
get;
set;
}
///
/// `this` object for this call frame.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("this"), IsRequired = (true))]
public CefSharp.DevTools.Runtime.RemoteObject This
{
get;
set;
}
///
/// The value being returned, if the function is at return point.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("returnValue"), IsRequired = (false))]
public CefSharp.DevTools.Runtime.RemoteObject ReturnValue
{
get;
set;
}
}
}