This repository was archived by the owner on Apr 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathDebugger.cs
More file actions
43 lines (39 loc) · 1.72 KB
/
Copy pathDebugger.cs
File metadata and controls
43 lines (39 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//------------------------------------------------------------------------------
// <license file="Debugger.cs">
//
// The use and distribution terms for this software are contained in the file
// named 'LICENSE', which can be found in the resources directory of this
// distribution.
//
// By using this software in any fashion, you are agreeing to be bound by the
// terms of this license.
//
// </license>
//------------------------------------------------------------------------------
// API class
using System;
using Context = EcmaScript.NET.Context;
namespace EcmaScript.NET.Debugging
{
/// <summary>Interface to implement if the application is interested in receiving debug
/// information.
/// </summary>
public interface Debugger
{
/// <summary>Called when compilation of a particular function or script into internal
/// bytecode is done.
/// </summary>
/// <param name="cx">current Context for this thread
/// </param>
/// <param name="fnOrScript">object describing the function or script
/// </param>
/// <param name="source">the function or script source
/// </param>
void HandleCompilationDone (Context cx, DebuggableScript fnOrScript, string source);
/// <summary>Called when execution entered a particular function or script.</summary>
/// <returns> implementation of DebugFrame which receives debug information during
/// the function or script execution or null otherwise
/// </returns>
DebugFrame GetFrame (Context cx, DebuggableScript fnOrScript);
}
}