Home
last modified time | relevance | path

Searched refs:debugger (Results 1 - 25 of 32) sorted by relevance

12

/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/overwrites/
H A Dcdp_debugger_callframe_from_json.py20 import cdp.debugger as debugger namespace
28 The debugger does not return the required field `this`.
31 def fix_callframe_from_json(json: typing.Dict[str, typing.Any]) -> debugger.CallFrame:
32 return debugger.CallFrame(
33 call_frame_id=debugger.CallFrameId.from_json(json["callFrameId"]),
35 location=debugger.Location.from_json(json["location"]),
37 scope_chain=[debugger.Scope.from_json(i) for i in json["scopeChain"]],
40 debugger.Location.from_json(json["functionLocation"]) if "functionLocation" in json else None
45 setattr(debugger
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/
H A Ddebug_client.py25 from cdp import debugger, runtime namespace
61 async def run_if_waiting_for_debugger(self) -> debugger.Paused:
64 debugger.Paused,
78 debugger.set_pause_on_exceptions(
83 async def resume(self) -> debugger.Resumed:
85 debugger.resume(),
86 debugger.Resumed,
89 async def resume_and_wait_for_paused(self) -> debugger.Paused:
90 async with self.wait_for(debugger.Paused) as proxy:
95 async def send_and_wait_for_paused(self, send_arg) -> debugger
[all...]
H A Dsource_meta.py22 from cdp import debugger, runtime namespace
45 breakpoint_id: debugger.BreakpointId | None = None
46 locations: List[debugger.Location] | None = None
56 def get_breakpoint(self, breakpoint_id: debugger.BreakpointId) -> List[Breakpoint]:
75 debugger.Location(script_id=script_id, line_number=br.line_number),
H A Ddebug_connection.py26 from cdp import debugger, runtime namespace
133 self._scripts: Dict[runtime.ScriptId, debugger.ScriptParsed] = {}
135 async def __getitem__(self, script_id: runtime.ScriptId) -> debugger.ScriptParsed:
141 async def get(self, script_id: runtime.ScriptId) -> Optional[debugger.ScriptParsed]:
145 async def get_by_url(self, url: str) -> Optional[debugger.ScriptParsed]:
152 async def add(self, *scripts: debugger.ScriptParsed) -> None:
H A Ddebug_types.py26 from cdp import debugger, runtime namespace
170 class Scope(Wrap[debugger.Scope]):
178 class Frame(Wrap[debugger.CallFrame]):
194 class Paused(Wrap[debugger.Paused]):
195 def frame(self, id: Union[int, debugger.CallFrameId] = 0) -> Frame:
196 frame_id = id if isinstance(id, debugger.CallFrameId) else debugger.CallFrameId(str(id))
215 b for hit in self.data.hit_breakpoints for b in self.locator.meta.get_breakpoint(debugger.BreakpointId(hit))
259 def paused_locator(paused: debugger.Paused, client: DebuggerClient, meta: SourceMeta | None = None) -> Paused:
H A Dwalker.py23 from cdp import debugger namespace
41 def __init__(self, locator: Locator, data: debugger.Paused, capture: ProcessCapture) -> None:
/arkcompiler/toolchain/tooling/test/
H A Djs_pt_hooks_test.cpp22 #include "ecmascript/debugger/js_debugger.h"
63 auto debugger = std::make_unique<DebuggerImpl>(ecmaVm, nullptr, nullptr); in HWTEST_F_L0() local
64 std::unique_ptr<JSPtHooks> jspthooks = std::make_unique<JSPtHooks>(debugger.get()); in HWTEST_F_L0()
74 auto debugger = std::make_unique<DebuggerImpl>(ecmaVm, nullptr, nullptr); in HWTEST_F_L0() local
75 std::unique_ptr<JSPtHooks> jspthooks = std::make_unique<JSPtHooks>(debugger.get()); in HWTEST_F_L0()
82 auto debugger = std::make_unique<DebuggerImpl>(ecmaVm, nullptr, nullptr); in HWTEST_F_L0() local
83 std::unique_ptr<JSPtHooks> jspthooks = std::make_unique<JSPtHooks>(debugger.get()); in HWTEST_F_L0()
93 auto debugger = std::make_unique<DebuggerImpl>(ecmaVm, nullptr, nullptr); in HWTEST_F_L0() local
94 std::unique_ptr<JSPtHooks> jspthooks = std::make_unique<JSPtHooks>(debugger.get()); in HWTEST_F_L0()
103 auto debugger in HWTEST_F_L0() local
111 auto debugger = std::make_unique<DebuggerImpl>(ecmaVm, nullptr, nullptr); HWTEST_F_L0() local
119 auto debugger = std::make_unique<DebuggerImpl>(ecmaVm, nullptr, nullptr); HWTEST_F_L0() local
127 auto debugger = std::make_unique<DebuggerImpl>(ecmaVm, nullptr, nullptr); HWTEST_F_L0() local
[all...]
H A Ddebugger_commands_test.cpp19 #include "ecmascript/debugger/js_debugger.h"
65 std::unique_ptr<JSDebugger> debugger = std::make_unique<JSDebugger>(ecmaVm); in HWTEST_F_L0() local
66 ASSERT_NE(debugger, nullptr); in HWTEST_F_L0()
H A Ddebugger_impl_test.cpp1390 R"({"id":0,"result":{"code":1,"message":"SetBreakpointByUrl: debugger agent is not enabled"}})"); in HWTEST_F_L0()
1639 auto debugger = std::make_unique<DebuggerImplFriendTest>(debuggerImpl); in HWTEST_F_L0() local
1640 ASSERT_TRUE(!debugger->GetMixStackEnabled()); in HWTEST_F_L0()
1663 auto debugger = std::make_unique<DebuggerImplFriendTest>(debuggerImpl); in HWTEST_F_L0() local
1664 ASSERT_TRUE(debugger->GetMixStackEnabled()); in HWTEST_F_L0()
1687 auto debugger = std::make_unique<DebuggerImplFriendTest>(debuggerImpl); in HWTEST_F_L0() local
1688 ASSERT_TRUE(debugger->GetMixStackEnabled()); in HWTEST_F_L0()
1711 auto debugger = std::make_unique<DebuggerImplFriendTest>(debuggerImpl); in HWTEST_F_L0() local
1712 ASSERT_TRUE(!debugger->GetMixStackEnabled()); in HWTEST_F_L0()
1735 auto debugger in HWTEST_F_L0() local
1759 auto debugger = std::make_unique<DebuggerImplFriendTest>(debuggerImpl); HWTEST_F_L0() local
1776 auto debugger = std::make_unique<DebuggerImplFriendTest>(debuggerImpl); HWTEST_F_L0() local
1795 auto debugger = std::make_unique<DebuggerImplFriendTest>(debuggerImpl); HWTEST_F_L0() local
[all...]
/arkcompiler/toolchain/test/autotest/scenario_test/
H A Dtest_debug_04.py28 from aw import debugger, runtime namespace
38 1. 连接 connect server 和主线程 debugger server
39 2. 连接子线程 debugger server,用于执行 task 任务
50 12. 关闭所有线程 debugger server 和 connect server 连接
97 # main thread: connect the debugger server
100 logging.info(f'Connect to the debugger server of instance: {main_thread.instance_id}')
102 # worker thread: connect the debugger server
105 logging.info(f'Connect to the debugger server of instance: {worker_thread.instance_id}')
133 params = debugger.RemoveBreakpointsUrl(self.config['file_path']['index'])
138 locations = [debugger
[all...]
H A Dtest_debug_02.py29 from aw import debugger namespace
40 2. 连接 connect server 和主线程 debugger server
41 3. 创建两个子线程,连接子线程 debugger server
53 15. 销毁所有子线程,对应的 debugger server 连接断开
54 16. 关闭主线程 debugger server 和 connect server 连接
101 # main thread: connect the debugger server
104 logging.info(f'Connect to the debugger server of instance: {main_thread.instance_id}')
106 # worker thread: connect the debugger server
109 logging.info(f'Connect to the debugger server of instance: {worker_thread_1.instance_id}')
111 logging.info(f'Connect to the debugger serve
[all...]
H A Dtest_debug_03.py28 from aw import debugger, runtime namespace
38 1. 连接 connect server 和主线程 debugger server
40 3. 连接子线程 debugger server,用于执行 task 任务
51 14. 关闭所有线程 debugger server 和 connect server 连接
97 # main thread: connect the debugger server
100 logging.info(f'Connect to the debugger server of instance: {main_thread.instance_id}')
146 # worker thread: connect the debugger server
149 logging.info(f'Connect to the debugger server of instance: {worker_thread.instance_id}')
165 params = debugger.RemoveBreakpointsUrl(self.config['file_path']['index'])
170 locations = [debugger
[all...]
H A Dtest_debug_01.py28 from aw import debugger, runtime namespace
38 1. 连接 connect server 和主线程 debugger server
42 5. 创建第一个子线程,连接子线程 debugger server
44 7. 创建另一个子线程,连接子线程 debugger server
58 21. 销毁所有子线程,对应的 debugger server 连接断开
59 22. 关闭主线程 debugger server 和 connect server 连接
105 # main thread: connect the debugger server
108 logging.info(f'Connect to the debugger server of instance: {main_thread.instance_id}')
152 params = debugger.RemoveBreakpointsUrl(self.config['file_path']['index'])
157 locations = [debugger
[all...]
/arkcompiler/ets_runtime/ecmascript/debugger/tests/
H A Djs_debugger_test.cpp17 #include "ecmascript/debugger/js_debugger.h"
86 JSDebugger debugger(ecmaVm); in HWTEST_F_L0()
107 bool result = debugger.RemoveBreakpoint(location); in HWTEST_F_L0()
109 result = debugger.SetSmartBreakpoint(location); in HWTEST_F_L0()
118 JSDebugger debugger(ecmaVm); in HWTEST_F_L0()
119 debugger.MethodEntry(methodHandle, envHandle); in HWTEST_F_L0()
121 bool result = debugger.HandleDebuggerStmt(methodHandle, bcOffsetTest); in HWTEST_F_L0()
/arkcompiler/toolchain/test/autotest/aw/api/
H A Ddebugger_api.py24 from aw.cdp import debugger namespace
85 debugger.enable(), message_id)
96 debugger.disable(), message_id)
123 debugger.resume(), message_id)
135 debugger.remove_breakpoints_by_url(params), message_id)
144 debugger.get_possible_and_set_breakpoint_by_url(params),
154 debugger.step_over(), message_id)
166 debugger.step_out(), message_id)
178 debugger.step_into(), message_id)
190 debugger
[all...]
/arkcompiler/toolchain/tooling/backend/
H A Djs_pt_hooks.h22 #include "ecmascript/debugger/js_debugger_interface.h"
30 explicit JSPtHooks(DebuggerImpl *debugger) : debugger_(debugger) {} in JSPtHooks() argument
/arkcompiler/toolchain/test/fuzztest/backend/backendloadmodule_fuzzer/
H A Dbackendloadmodule_fuzzer.cpp52 auto debugger = std::make_unique<DebuggerImpl>(vm, nullptr, nullptr); in BackendLoadModuleFuzzTest() local
53 std::unique_ptr<JSPtHooks> jspthooks = std::make_unique<JSPtHooks>(debugger.get()); in BackendLoadModuleFuzzTest()
/arkcompiler/toolchain/test/fuzztest/backend/backendexception_fuzzer/
H A Dbackendexception_fuzzer.cpp52 auto debugger = std::make_unique<DebuggerImpl>(vm, nullptr, nullptr); in BackendExceptionFuzzTest() local
53 std::unique_ptr<JSPtHooks> jspthooks = std::make_unique<JSPtHooks>(debugger.get()); in BackendExceptionFuzzTest()
/arkcompiler/toolchain/test/fuzztest/backend/backendsinglestep_fuzzer/
H A Dbackendsinglestep_fuzzer.cpp52 auto debugger = std::make_unique<DebuggerImpl>(vm, nullptr, nullptr); in BackendSingleStepFuzzTest() local
53 std::unique_ptr<JSPtHooks> jspthooks = std::make_unique<JSPtHooks>(debugger.get()); in BackendSingleStepFuzzTest()
/arkcompiler/toolchain/test/fuzztest/backend/backendbreakpoint_fuzzer/
H A Dbackendbreakpoint_fuzzer.cpp52 auto debugger = std::make_unique<DebuggerImpl>(vm, nullptr, nullptr); in BackendBreakpointFuzzTest() local
53 std::unique_ptr<JSPtHooks> jspthooks = std::make_unique<JSPtHooks>(debugger.get()); in BackendBreakpointFuzzTest()
/arkcompiler/toolchain/test/fuzztest/backend/backendnativecalling_fuzzer/
H A Dbackendnativecalling_fuzzer.cpp52 auto debugger = std::make_unique<DebuggerImpl>(vm, nullptr, nullptr); in BackendNativeCallingFuzzTest() local
53 std::unique_ptr<JSPtHooks> jspthooks = std::make_unique<JSPtHooks>(debugger.get()); in BackendNativeCallingFuzzTest()
/arkcompiler/ets_runtime/ecmascript/debugger/
H A Ddebugger_api.h22 #include "ecmascript/debugger/js_debugger_interface.h"
23 #include "ecmascript/debugger/js_pt_method.h"
141 static void DestroyJSDebugger(JSDebugger *debugger);
142 static void RegisterHooks(JSDebugger *debugger, PtHooks *hooks);
143 static bool SetBreakpoint(JSDebugger *debugger, const JSPtLocation &location,
145 static bool RemoveBreakpoint(JSDebugger *debugger, const JSPtLocation &location);
146 static void RemoveAllBreakpoints(JSDebugger *debugger);
154 static void SetSingleStepStatus(JSDebugger *debugger, bool status);
155 static bool GetSingleStepStatus(JSDebugger *debugger);
159 static bool RemoveBreakpointsByUrl(JSDebugger *debugger, cons
[all...]
H A Ddebugger_api.cpp16 #include "ecmascript/debugger/debugger_api.h"
18 #include "ecmascript/debugger/js_debugger.h"
248 void DebuggerApi::DestroyJSDebugger(JSDebugger *debugger) in DestroyJSDebugger() argument
250 delete debugger; in DestroyJSDebugger()
253 void DebuggerApi::RegisterHooks(JSDebugger *debugger, PtHooks *hooks) in RegisterHooks() argument
255 debugger->RegisterHooks(hooks); in RegisterHooks()
258 bool DebuggerApi::SetBreakpoint(JSDebugger *debugger, const JSPtLocation &location, in SetBreakpoint() argument
262 return debugger->SetSmartBreakpoint(location); in SetBreakpoint()
264 return debugger->SetBreakpoint(location, condFuncRef); in SetBreakpoint()
267 bool DebuggerApi::RemoveBreakpoint(JSDebugger *debugger, cons argument
272 RemoveAllBreakpoints(JSDebugger *debugger) RemoveAllBreakpoints() argument
277 SetSingleStepStatus(JSDebugger *debugger, bool status) SetSingleStepStatus() argument
282 GetSingleStepStatus(JSDebugger *debugger) GetSingleStepStatus() argument
323 RemoveBreakpointsByUrl(JSDebugger *debugger, const std::string &url) RemoveBreakpointsByUrl() argument
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/
H A Ddebugger_api.cpp55 auto &debugger = Runtime::GetCurrent()->StartDebugSession()->GetDebugger(); in DebuggerAPIGetLocal() local
56 auto err = debugger.GetVariable(ark::ets::tooling::CoroutineToPtThread(coroutine), PREVIOUS_FRAME_DEPTH, regNumber, in DebuggerAPIGetLocal()
138 auto &debugger = Runtime::GetCurrent()->StartDebugSession()->GetDebugger(); in DebuggerAPISetLocal() local
139 auto err = debugger.SetVariable(ark::ets::tooling::CoroutineToPtThread(coroutine), PREVIOUS_FRAME_DEPTH, regNumber, in DebuggerAPISetLocal()
/arkcompiler/toolchain/test/autotest/aw/
H A D__init__.py24 from aw.cdp import debugger namespace

Completed in 16 milliseconds

12