/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/tests/ |
H A D | test_restart_frame.py | 53 paused = await stop_point.client.restart_frame(0) # now we returned into frame of the main 54 assert paused.call_frames[0].function_name == "main" 62 paused = await stop_point.client.restart_frame(0) 63 assert paused.call_frames[0].function_name == "foo" 71 paused = await stop_point.client.restart_frame(0) 72 assert paused.call_frames[0].function_name == "boo" 78 paused = await stop_point.client.restart_frame(1) 79 assert paused.call_frames[0].function_name == "foo"
|
H A D | test_runtime_capture.py | 70 async for paused in walker: 71 bp = paused.hit_breakpoints().pop() 72 counter, stop = _check(bp.label, expect, paused, counter) 77 def _check(bp_label: str | None, expect: Expect, paused: PausedStep, counter: int) -> tuple[int, bool]: 82 assert arkts_str(bp_label) == paused.capture.stdout[-1] 85 assert [arkts_str(counter)] == paused.capture.stdout 89 assert arkts_str_list([bp_label]) == paused.capture.stdout
|
H A D | test_breaks_props.py | 107 paused = await client.resume_and_wait_for_paused() 108 log.info(f"{paused}") 113 paused=paused_locator(paused=paused, client=client), 118 assert paused.call_frames[0].location.line_number == br.line_number 167 paused = await client.resume_and_wait_for_paused() 168 paused_ln = paused.call_frames[0].location.line_number 172 paused=paused_locator(paused [all...] |
H A D | test_stepping.py | 61 paused = await client.step_into() 62 assert paused.call_frames[0].location.line_number == for_loop_line_number 63 paused = await client.step_into() 64 assert paused.call_frames[0].location.line_number == for_loop_line_number + 1
|
H A D | test_remote_object.py | 50 async with run_and_stop_on_breakpoint(code) as paused: 51 scope_vars = await paused.frame().scope().mirror_variables() 77 async with run_and_stop_on_breakpoint(code) as paused: 78 scope_vars = await paused.frame().scope().mirror_variables()
|
H A D | test_steps.py | 103 paused = await client.run_if_waiting_for_debugger() 104 log.info("%s", paused) 110 paused = await client.continue_to_location(script_id=runtime.ScriptId("0"), line_number=line_number) 111 script_file.log(log, highlight_lines=[paused.call_frames[0].location.line_number + 1]) 112 log.info("paused: %s", paused) 115 for frame in paused.call_frames 190 paused = await client.resume_and_wait_for_paused() 191 paused_ln = paused.call_frames[0].location.line_number
|
H A D | test_this.py | 112 warnings.warn(f"Unknown breakpoint on line {paused.frame().data.location.line_number}") 117 async for paused in walker: 118 bp = paused.hit_breakpoints().pop() 121 this_obj = paused.frame().this() 123 scope_vars = await paused.frame().scope().mirror_variables()
|
H A D | test_object_preview.py | 101 async with run_and_stop_on_breakpoint(TEST_OBJECT_PREVIEW) as paused: 103 local_scope_object_id = paused.local_scope().object_().data.object_id 105 properties = await paused.client.get_properties(
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/internal_tests/ |
H A D | test_arkts_str.py | 68 async for paused in walker: 69 vars = await paused.frame().scope().mirror_variables() 120 paused: PausedStep, 128 assert paused.capture.stdout[-1] == "begin" 130 vars = await paused.local_scope().mirror_variables() 133 assert paused.capture.stdout == expected 139 # >>> printed_variables.append(paused.capture.stdout[-1]) 177 async for paused in walker: 178 label = paused.hit_breakpoints()[0].label 180 log.info("Capture:\n%s", "\n".join(paused [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/ |
H A D | walker.py | 61 self.paused: Paused | None = None 67 self.paused = None 73 paused = await self.client.resume_and_wait_for_paused() 76 self.paused = PausedStep( 78 data=paused, 84 return self.paused 104 if self.paused is None: 106 return "[red]Not paused[/red]" 108 paused=self.paused, [all...] |
H A D | debug.py | 193 paused = await context.client.resume_and_wait_for_paused() 197 paused=paused_locator(paused=paused, client=context.client, meta=context.meta), 201 yield Paused(locator=Locator(client=context.client), data=paused)
|
H A D | layouts.py | 102 paused: Paused, 107 frames = await frames_layout(paused.frames(), scopes=scopes, skip_scopes=skip_scopes) 108 highlight_lines = [f.location.line_number for f in paused.data.call_frames]
|
/arkcompiler/toolchain/test/fuzztest/base/ptevents/paused/baseptspausedsetdata_fuzzer/ |
H A D | baseptspausedsetdata_fuzzer.cpp | 37 Paused paused; in BasePtsPausedSetDataFuzzTest() local 39 paused.SetCallFrames(std::move(v)).SetReason(PauseReason::EXCEPTION); in BasePtsPausedSetDataFuzzTest() 40 std::unique_ptr<PtJson> json = paused.ToJson(); in BasePtsPausedSetDataFuzzTest() 42 paused.SetData(RemoteObject::Create(*json)); in BasePtsPausedSetDataFuzzTest()
|
/arkcompiler/toolchain/test/fuzztest/base/ptevents/paused/baseptspausedhashitbreakpoints_fuzzer/ |
H A D | baseptspausedhashitbreakpoints_fuzzer.cpp | 37 Paused paused; in BasePtsPausedHasHitBreakpointsFuzzTest() local 38 paused.HasHitBreakpoints(); in BasePtsPausedHasHitBreakpointsFuzzTest()
|
/arkcompiler/toolchain/test/fuzztest/base/ptevents/paused/baseptspausedhasdata_fuzzer/ |
H A D | baseptspausedhasdata_fuzzer.cpp | 37 Paused paused; in BasePtsPausedHasDataFuzzTest() local 38 paused.HasData(); in BasePtsPausedHasDataFuzzTest()
|
/arkcompiler/toolchain/test/fuzztest/base/ptevents/paused/baseptspausedgetcallframes_fuzzer/ |
H A D | baseptspausedgetcallframes_fuzzer.cpp | 37 Paused paused; in BasePtsPausedGetCallFramesFuzzTest() local 38 paused.GetCallFrames(); in BasePtsPausedGetCallFramesFuzzTest()
|
/arkcompiler/toolchain/test/fuzztest/base/ptevents/paused/baseptspausedgetreasonstring_fuzzer/ |
H A D | baseptspausedgetreasonstring_fuzzer.cpp | 37 Paused paused; in BasePtsPausedGetReasonStringFuzzTest() local 38 paused.GetReasonString(PauseReason::EXCEPTION); in BasePtsPausedGetReasonStringFuzzTest()
|
/arkcompiler/toolchain/test/fuzztest/base/ptevents/paused/baseptspausedgetreason_fuzzer/ |
H A D | baseptspausedgetreason_fuzzer.cpp | 37 Paused paused; in BasePtsPausedGetReasonFuzzTest() local 38 paused.GetReason(); in BasePtsPausedGetReasonFuzzTest()
|
/arkcompiler/toolchain/test/fuzztest/base/ptevents/paused/baseptspausedgetname_fuzzer/ |
H A D | baseptspausedgetname_fuzzer.cpp | 37 Paused paused; in BasePtsPausedGetNameFuzzTest() local 38 paused.GetName(); in BasePtsPausedGetNameFuzzTest()
|
/arkcompiler/toolchain/test/fuzztest/base/ptevents/paused/baseptspausedsethitbreakpoints_fuzzer/ |
H A D | baseptspausedsethitbreakpoints_fuzzer.cpp | 38 Paused paused; in BasePtsPausedSetHitBreakpointsFuzzTest() local 43 paused.SetHitBreakpoints(breakpointid_); in BasePtsPausedSetHitBreakpointsFuzzTest()
|
/arkcompiler/toolchain/test/fuzztest/base/ptevents/paused/baseptspausedsetreason_fuzzer/ |
H A D | baseptspausedsetreason_fuzzer.cpp | 37 Paused paused; in BasePtsPausedSetReasonFuzzTest() local 39 paused.SetCallFrames(std::move(v)).SetReason(PauseReason::EXCEPTION); in BasePtsPausedSetReasonFuzzTest()
|
/arkcompiler/toolchain/test/fuzztest/base/ptevents/paused/baseptspausedgethitbreakpoints_fuzzer/ |
H A D | baseptspausedgethitbreakpoints_fuzzer.cpp | 37 Paused paused; in BasePtsPausedGetHitBreakpointsFuzzTest() local 38 paused.GetHitBreakpoints(); in BasePtsPausedGetHitBreakpointsFuzzTest()
|
/arkcompiler/toolchain/test/fuzztest/base/ptevents/paused/baseptspausedgetdata_fuzzer/ |
H A D | baseptspausedgetdata_fuzzer.cpp | 37 Paused paused; in BasePtsPausedGetDataFuzzTest() local 38 paused.GetData(); in BasePtsPausedGetDataFuzzTest()
|
/arkcompiler/toolchain/test/fuzztest/base/ptevents/paused/baseptspausedsetcallframes_fuzzer/ |
H A D | baseptspausedsetcallframes_fuzzer.cpp | 37 Paused paused; in BasePtsPausedSetCallFramesFuzzTest() local 39 paused.SetCallFrames(std::move(v)).SetReason(PauseReason::EXCEPTION); in BasePtsPausedSetCallFramesFuzzTest()
|
/arkcompiler/toolchain/tooling/test/testcases/ |
H A D | js_variable_first_test.h | 108 auto paused = static_cast<const Paused *>(&events); 109 std::string str = paused->ToJson()->Stringify(); 112 ASSERT_EQ(paused->GetName(), "Debugger.paused"); 113 auto frame = paused->GetCallFrames()->at(0).get();
|