| /arkcompiler/ets_runtime/ecmascript/debugger/ |
| D | js_debugger_interface.h | 65 … * \brief called by the ecmavm when breakpoint hits. Thread where breakpoint hits is stopped until 67 …* @param thread Identifier of the thread where breakpoint hits. Now the callback is called in the … 69 * @param location Breakpoint location 71 virtual void Breakpoint(const JSPtLocation &location) = 0; 132 * \brief Set breakpoint to \param location with an optional \param condition 133 * @param location Breakpoint location 140 * \brief Remove breakpoint from \param location 141 * @param location Breakpoint location
|
| D | js_debugger.h | 59 std::stringstream breakpoint; in ToString() local 60 breakpoint << "["; in ToString() 61 breakpoint << "methodId:" << ptMethod_->GetMethodId() << ", "; in ToString() 62 breakpoint << "bytecodeOffset:" << bcOffset_ << ", "; in ToString() 63 breakpoint << "sourceFile:" << "\""<< sourceFile_ << "\""<< ", "; in ToString() 64 … breakpoint << "jsPandaFile:" << "\"" << ptMethod_->GetJSPandaFile()->GetJSPandaFileDesc() << "\""; in ToString() 65 breakpoint << "]"; in ToString() 66 return breakpoint.str(); in ToString() 190 bool IsBreakpointCondSatisfied(std::optional<JSBreakpoint> breakpoint) const;
|
| D | js_debugger.cpp | 32 LOG_DEBUGGER(ERROR) << "SetBreakpoint: Invalid breakpoint location"; in SetBreakpoint() 40 LOG_DEBUGGER(WARN) << "SetBreakpoint: Breakpoint already exists"; in SetBreakpoint() 56 LOG_DEBUGGER(ERROR) << "SetSmartBreakpoint: Invalid breakpoint location"; in SetSmartBreakpoint() 64 LOG_DEBUGGER(WARN) << "SetSmartBreakpoint: Breakpoint already exists"; in SetSmartBreakpoint() 80 LOG_DEBUGGER(ERROR) << "RemoveBreakpoint: Breakpoint not found"; in RemoveBreakpoint() 147 hooks_->Breakpoint(smartLocation); in HandleBreakpoint() 151 auto breakpoint = FindBreakpoint(method, bcOffset); in HandleBreakpoint() local 152 if (!breakpoint.has_value() || !IsBreakpointCondSatisfied(breakpoint)) { in HandleBreakpoint() 156 breakpoint.value().GetSourceFile()}; in HandleBreakpoint() 158 hooks_->Breakpoint(location); in HandleBreakpoint() [all …]
|
| /arkcompiler/toolchain/tooling/test/testcases/ |
| D | js_multiple_breakpoint_in_function_test.h | 37 // set breakpoint in JsMultipleBreakpointInFunctionTest() 49 // hit breakpoint in JsMultipleBreakpointInFunctionTest() 56 // hit breakpoint in JsMultipleBreakpointInFunctionTest() 62 // hit breakpoint in JsMultipleBreakpointInFunctionTest() 68 // hit breakpoint in JsMultipleBreakpointInFunctionTest() 74 // hit breakpoint in JsMultipleBreakpointInFunctionTest() 80 // hit breakpoint in JsMultipleBreakpointInFunctionTest() 116 std::string breakpoint = ""; in RecvHitBreakInfo() local 117 breakpoint = hitBreakpoints->Get(0)->GetString(); in RecvHitBreakInfo() 118 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in RecvHitBreakInfo() [all …]
|
| D | js_multiple_common_breakpoint_test.h | 37 // set breakpoint in JsMultipleCommonBreakpointTest() 47 // hit breakpoint in JsMultipleCommonBreakpointTest() 54 // hit breakpoint in JsMultipleCommonBreakpointTest() 60 // hit breakpoint in JsMultipleCommonBreakpointTest() 66 // hit breakpoint in JsMultipleCommonBreakpointTest() 72 // hit breakpoint in JsMultipleCommonBreakpointTest() 108 std::string breakpoint = ""; in RecvHitBreakInfo() local 109 breakpoint = hitBreakpoints->Get(0)->GetString(); in RecvHitBreakInfo() 110 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in RecvHitBreakInfo() 111 breakpoint.find(std::to_string(line)) == std::string::npos) { in RecvHitBreakInfo()
|
| D | js_breakpoint_async_test.h | 37 // set breakpoint in JsBreakpointAsyncTest() 40 // hit breakpoint after resume first time in JsBreakpointAsyncTest() 45 // hit breakpoint after resume second time in JsBreakpointAsyncTest() 70 std::string breakpoint; in JsBreakpointAsyncTest() 71 breakpoint = hitBreakpoints->Get(0)->GetString(); in JsBreakpointAsyncTest() 72 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in JsBreakpointAsyncTest() 73 breakpoint.find("17") == std::string::npos) { in JsBreakpointAsyncTest()
|
| D | js_breakpoint_test.h | 37 // set breakpoint in JsBreakpointTest() 40 // hit breakpoint after resume first time in JsBreakpointTest() 45 // hit breakpoint after resume second time in JsBreakpointTest() 70 std::string breakpoint; in JsBreakpointTest() 71 breakpoint = hitBreakpoints->Get(0)->GetString(); in JsBreakpointTest() 72 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in JsBreakpointTest() 73 breakpoint.find("21") == std::string::npos) { in JsBreakpointTest()
|
| D | js_accelerate_launch_test.h | 64 std::string breakpoint; in JsAccelerateLaunchTest() 65 breakpoint = hitBreakpoints->Get(0)->GetString(); in JsAccelerateLaunchTest() 66 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in JsAccelerateLaunchTest() 67 breakpoint.find("21") == std::string::npos) { in JsAccelerateLaunchTest() 98 std::string breakpoint; in JsAccelerateLaunchTest() 99 breakpoint = hitBreakpoints->Get(0)->GetString(); in JsAccelerateLaunchTest() 100 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in JsAccelerateLaunchTest() 101 breakpoint.find("22") == std::string::npos) { in JsAccelerateLaunchTest()
|
| D | js_breakpoint_in_different_branch.h | 37 // set breakpoint in JsBreakpointInDifferentBranchTest() 41 // hit breakpoint in 'if' branch in JsBreakpointInDifferentBranchTest() 49 // hit breakpoint in 'else' branch in JsBreakpointInDifferentBranchTest() 86 std::string breakpoint = ""; in RecvHitBreakInfo() local 87 breakpoint = hitBreakpoints->Get(0)->GetString(); in RecvHitBreakInfo() 88 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in RecvHitBreakInfo() 89 breakpoint.find(std::to_string(line)) == std::string::npos) { in RecvHitBreakInfo()
|
| D | js_breakpoint_cannot_hit_test.h | 37 // set breakpoint in JsBreakpointCannotHitTest() 43 // hit breakpoint after resume first time in JsBreakpointCannotHitTest() 51 // hit breakpoint after resume second time in JsBreakpointCannotHitTest() 88 std::string breakpoint = ""; in RecvHitBreakInfo() local 89 breakpoint = hitBreakpoints->Get(0)->GetString(); in RecvHitBreakInfo() 90 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in RecvHitBreakInfo() 91 breakpoint.find(std::to_string(line)) == std::string::npos) { in RecvHitBreakInfo()
|
| D | js_breakpoint_arrow_test.h | 37 // set breakpoint in JsBreakpointArrowTest() 40 // hit breakpoint after resume first time in JsBreakpointArrowTest() 65 std::string breakpoint; in JsBreakpointArrowTest() 66 breakpoint = hitBreakpoints->Get(0)->GetString(); in JsBreakpointArrowTest() 67 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in JsBreakpointArrowTest() 68 breakpoint.find("17") == std::string::npos) { in JsBreakpointArrowTest()
|
| D | js_heapusage_test.h | 37 // set breakpoint in JsHeapusageTest() 40 // hit breakpoint after resume first time in JsHeapusageTest() 45 // hit breakpoint after resume second time in JsHeapusageTest() 71 std::string breakpoint = ""; in JsHeapusageTest() 72 breakpoint = hitBreakpoints->Get(0)->GetString(); in JsHeapusageTest() 73 … if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in JsHeapusageTest() 74 breakpoint.find("21") == std::string::npos) { in JsHeapusageTest()
|
| D | js_special_location_breakpoint_test.h | 37 // set breakpoint in JsSpecialLocationBreakpointTest() 44 // hit breakpoint on first line in JsSpecialLocationBreakpointTest() 50 // hit breakpoint on the end of line in JsSpecialLocationBreakpointTest() 123 std::string breakpoint = ""; in RecvHitBreakInfo() local 124 breakpoint = hitBreakpoints->Get(0)->GetString(); in RecvHitBreakInfo() 125 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in RecvHitBreakInfo() 126 breakpoint.find(std::to_string(line)) == std::string::npos) { in RecvHitBreakInfo()
|
| D | js_stepout_test.h | 37 // set first breakpoint in JsStepoutTest() 41 // hit breakpoint after resume first time in JsStepoutTest() 89 std::string breakpoint = ""; in RecvBreakInfo() local 90 breakpoint = hitBreakpoints->Get(0)->GetString(); in RecvBreakInfo() 91 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in RecvBreakInfo() 92 breakpoint.find("16") == std::string::npos) { in RecvBreakInfo()
|
| D | js_watch_closure_variable_test.h | 44 // set breakpoint in JsWatchClosureVariableTest() 48 // hit breakpoint after resume first time in JsWatchClosureVariableTest() 89 std::string breakpoint = ""; in RecvHitBreakInfo() local 90 breakpoint = hitBreakpoints->Get(0)->GetString(); in RecvHitBreakInfo() 91 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in RecvHitBreakInfo() 92 breakpoint.find(std::to_string(line)) == std::string::npos) { in RecvHitBreakInfo()
|
| D | js_step_into_test.h | 34 // line number for breakpoint array in JsStepIntoTest() 35 size_t breakpoint[POINTER_SIZE][LINE_COLUMN] = in JsStepIntoTest() local 40 SetJSPtLocation(breakpoint[0], POINTER_SIZE, pointerLocations_); in JsStepIntoTest() 53 breakpoint = [this](const JSPtLocation &location) { in JsStepIntoTest() 57 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsStepIntoTest()
|
| D | js_step_out_test.h | 34 // 74、36: line number for breakpoint array in JsStepOutTest() 35 size_t breakpoint[5][2] = {{74, 0}, {36, 0}, {50, 0}, {61, 0}, {96, 0}}; in JsStepOutTest() local 38 SetJSPtLocation(breakpoint[0], POINTER_SIZE, pointerLocations_); in JsStepOutTest() 51 breakpoint = [this](const JSPtLocation &location) { in JsStepOutTest() 55 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsStepOutTest()
|
| D | js_step_over_test.h | 34 // 24、27: line number for breakpoint array in JsStepOverTest() 35 …size_t breakpoint[8][2] = {{24, 0}, {27, 0}, {36, 0}, {50, 0}, {60, 0}, {90, 0}, {96, 0}, {54, 0}}; in JsStepOverTest() local 38 SetJSPtLocation(breakpoint[0], POINTER_SIZE, pointerLocations_); in JsStepOverTest() 51 breakpoint = [this](const JSPtLocation &location) { in JsStepOverTest() 55 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsStepOverTest()
|
| D | js_stepout_async_test.h | 37 // set first breakpoint in JsStepoutAsyncTest() 41 // hit breakpoint after resume first time in JsStepoutAsyncTest() 89 std::string breakpoint = ""; in RecvBreakInfo() local 90 breakpoint = hitBreakpoints->Get(0)->GetString(); in RecvBreakInfo() 91 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in RecvBreakInfo() 92 breakpoint.find("16") == std::string::npos) { in RecvBreakInfo()
|
| D | js_stepover_test.h | 37 // set first breakpoint in JsStepoverTest() 41 // hit breakpoint after resume first time in JsStepoverTest() 95 std::string breakpoint = ""; in RecvBreakInfo() local 96 breakpoint = hitBreakpoints->Get(0)->GetString(); in RecvBreakInfo() 97 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in RecvBreakInfo() 98 breakpoint.find("21") == std::string::npos) { in RecvBreakInfo()
|
| D | js_smart_stepInto_test.h | 37 // set first breakpoint in JsSmartStepoutTest() 41 // hit breakpoint after resume first time in JsSmartStepoutTest() 89 std::string breakpoint = ""; in RecvBreakInfo() local 90 breakpoint = hitBreakpoints->Get(0)->GetString(); in RecvBreakInfo() 91 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in RecvBreakInfo() 92 breakpoint.find(lineNumber) == std::string::npos) { in RecvBreakInfo()
|
| D | js_stepout_before_function_test.h | 37 // set first breakpoint in JsStepoutBeforeFunctionTest() 41 // hit breakpoint after resume first time in JsStepoutBeforeFunctionTest() 95 std::string breakpoint = ""; in RecvBreakInfo() local 96 breakpoint = hitBreakpoints->Get(0)->GetString(); in RecvBreakInfo() 97 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in RecvBreakInfo() 98 breakpoint.find("21") == std::string::npos) { in RecvBreakInfo()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/ |
| D | source_meta.py | 42 class Breakpoint: class 51 breakpoints: List[Breakpoint] 56 def get_breakpoint(self, breakpoint_id: debugger.BreakpointId) -> List[Breakpoint]: 68 brs.append(Breakpoint(line_number=line_number, label=groups.get("br_label"))) 72 def breakpoints_to_locations(breakpoints: List[Breakpoint], script_id: runtime.ScriptId): argument
|
| /arkcompiler/ets_runtime/ecmascript/debugger/tests/ |
| D | js_debugger_test.cpp | 46 bool IsBreakpointCondSatisfiedTest(std::optional<JSBreakpoint> breakpoint) const in IsBreakpointCondSatisfiedTest() 48 return jsDebugger_.IsBreakpointCondSatisfied(breakpoint); in IsBreakpointCondSatisfiedTest() 138 std::optional<ecmascript::tooling::JSBreakpoint> breakpoint; in HWTEST_F_L0() local 139 bool result = debuggerFriend.IsBreakpointCondSatisfiedTest(breakpoint); in HWTEST_F_L0()
|
| /arkcompiler/runtime_core/static_core/verification/config/debug_breakpoint/ |
| D | breakpoint.cpp | 57 breakpoint.Apply([&](auto &breakpointMap) { breakpointMap[id].insert(offset); }); in InsertBreakpoints() 64 return ctx->breakpoint.Apply([&](const auto &breakpointMap) { in CheckManagedBreakpoint() 75 return ctx->breakpoint->count(id) > 0; in ManagedBreakpointPresent()
|