/arkcompiler/ets_runtime/ecmascript/debugger/ |
H A 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() 182 bool IsBreakpointCondSatisfied(std::optional<JSBreakpoint> breakpoint) const;
|
H A D | js_debugger.cpp | 33 LOG_DEBUGGER(ERROR) << "SetBreakpoint: Invalid breakpoint location"; in SetBreakpoint() 57 LOG_DEBUGGER(ERROR) << "SetSmartBreakpoint: Invalid breakpoint location"; in SetSmartBreakpoint() 152 auto breakpoint = FindBreakpoint(method, bcOffset); in HandleBreakpoint() local 153 if (!breakpoint.has_value() || !IsBreakpointCondSatisfied(breakpoint)) { in HandleBreakpoint() 157 breakpoint.value().GetSourceFile()}; in HandleBreakpoint() 174 // if a breakpoint is set on the same line as debugger stmt, in HandleDebuggerStmt() 291 bool JSDebugger::IsBreakpointCondSatisfied(std::optional<JSBreakpoint> breakpoint) const in IsBreakpointCondSatisfied() 293 if (!breakpoint.has_value()) { in IsBreakpointCondSatisfied() 297 auto condFuncRef = breakpoint in IsBreakpointCondSatisfied() [all...] |
/arkcompiler/ets_runtime/ecmascript/debugger/tests/ |
H A 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/toolchain/tooling/test/testcases/ |
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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 in RecvHitBreakInfo() [all...] |
H A 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()
|
H A 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()
|
H A 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() 38 SetJSPtLocation(breakpoint[0], POINTER_SIZE, pointerLocations_); in JsStepOverTest() 51 breakpoint = [this](const JSPtLocation &location) { in JsStepOverTest()
|
H A 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() 38 SetJSPtLocation(breakpoint[0], POINTER_SIZE, pointerLocations_); in JsStepOutTest() 51 breakpoint = [this](const JSPtLocation &location) { in JsStepOutTest()
|
H A D | js_step_into_test.h | 34 // line number for breakpoint array in JsStepIntoTest() 35 size_t breakpoint[POINTER_SIZE][LINE_COLUMN] = in JsStepIntoTest() 40 SetJSPtLocation(breakpoint[0], POINTER_SIZE, pointerLocations_); in JsStepIntoTest() 53 breakpoint = [this](const JSPtLocation &location) { in JsStepIntoTest()
|
H A 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 in RecvHitBreakInfo() [all...] |
H A D | js_container_test.h | 37 // set breakpoint in JsContainerTest() 40 // hit breakpoint after resume first time in JsContainerTest() 65 std::string breakpoint; in JsContainerTest() 66 breakpoint = hitBreakpoints->Get(0)->GetString(); in JsContainerTest() 67 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in JsContainerTest() 68 breakpoint.find("367") == std::string::npos) { in JsContainerTest()
|
H A D | js_exception_test.h | 37 // set first breakpoint in JsExceptionTest() 41 // hit breakpoint after resume first time in JsExceptionTest() 66 std::string breakpoint; in JsExceptionTest() 67 breakpoint = hitBreakpoints->Get(0)->GetString(); in JsExceptionTest() 68 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in JsExceptionTest() 69 breakpoint.find("23") == std::string::npos) { in JsExceptionTest()
|
H A 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()
|
H A 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()
|
H A D | js_stepout_arrow_test.h | 43 // set first breakpoint in JsStepoutArrowTest() 47 // hit breakpoint after resume first time in JsStepoutArrowTest() 105 std::string breakpoint = ""; in RecvBreakInfo() local 106 breakpoint = hitBreakpoints->Get(0)->GetString(); in RecvBreakInfo() 107 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in RecvBreakInfo() 108 breakpoint.find("18") == std::string::npos) { in RecvBreakInfo()
|
H A D | js_stepinto_async_test.h | 37 // set first breakpoint in JsStepintoAsyncTest() 41 // hit breakpoint after resume first time in JsStepintoAsyncTest() 119 std::string breakpoint = ""; in RecvBreakInfo() local 120 breakpoint = hitBreakpoints->Get(0)->GetString(); in RecvBreakInfo() 121 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in RecvBreakInfo() 122 breakpoint.find("24") == std::string::npos) { in RecvBreakInfo()
|
/arkcompiler/runtime_core/static_core/verification/config/debug_breakpoint/ |
H A 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()
|