forked from chakra-core/ChakraCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDebuggerController.cpp
More file actions
26 lines (21 loc) · 938 Bytes
/
DebuggerController.cpp
File metadata and controls
26 lines (21 loc) · 938 Bytes
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
//---------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
//----------------------------------------------------------------------------
#include "StdAfx.h"
DebuggerController::DebuggerController(JsRuntimeHandle debugRuntime)
{
this->debuggerScriptWrapper = new DebuggerScriptWrapper(debugRuntime);
}
DebuggerController::~DebuggerController()
{
delete this->debuggerScriptWrapper;
this->debuggerScriptWrapper = nullptr;
}
HRESULT DebuggerController::InstallHostCallback(LPCWSTR propName, JsNativeFunction function, void *data)
{
return this->debuggerScriptWrapper->InstallHostCallback(propName, function, data);
}
HRESULT DebuggerController::ProcessDebugEvent(__in __nullterminated LPCWSTR event, __in __nullterminated LPCWSTR eventJSON)
{
return this->debuggerScriptWrapper->CallGlobalFunction(L"ProcessDebugEvent", NULL, event, eventJSON);
}