mirror of
https://github.com/openharmony/ark_js_runtime.git
synced 2026-08-27 02:31:17 -04:00
3ae043afa5
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>
29 lines
988 B
C++
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
|