Files
ark_js_runtime/ecmascript/tooling/test/entry/test_debugger_entry.cpp
T
wengchangcheng 3ae043afa5 Descriptor: enable testcase with ecmavm instead of runtime
details:
1. add debugger module testcase in host
2. fix debugger crash when throw exception in interpreter
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I53WBO

Change-Id: Ia7d878b0b81c011d940a9187d39c854f6a592e6d
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-04-22 20:42:16 +08:00

29 lines
988 B
C++

/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "ecmascript/tooling/test/utils/test_entry.h"
namespace panda::ecmascript::tooling::test {
extern "C" bool StartDebug(const std::string &name, EcmaVM *vm, bool isDebugMode)
{
return StartDebuggerImpl(name, vm, isDebugMode);
}
extern "C" bool StopDebug(const std::string &name)
{
return StopDebuggerImpl(name);
}
} // namespace panda::ecmascript::tooling::test