Home
last modified time | relevance | path

Searched full:breakpoint (Results 1 – 25 of 158) sorted by relevance

1234567

/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/debugger/
Dbreakpoint_base.h31 /// @brief Base breakpoint class
42 * @brief Get breakpoint id
51 * @brief If breakpoint resolved and can be hit
60 * @brief Tries to resolve breakpoint, shuould be called on load new panda file
63 * @returns Was breakpoint resolved
73 * @brief Applies function to every breakpoint location
74 * @param[in] func function to apply to every breakpoint
81 * @param[in] engine to evaluate conditions for conditional breakpoint
87 * @brief Set locations for current breakpoint
88 * @param[out] sourceFiles returns sourceFiles where breakpoint was set
[all …]
Dbreakpoint_storage.h29 …* @brief Blocking breakpoint storage class, adds functionality to add/remove/enable/disable breakp…
48 * @brief Get breakpoint id vector by location
55 * @brief Set a breakpoint with optional condition.
58 * @param[out] sourceFiles returns sourceFiles where breakpoint was set
61 * @returns BreakpointId of set breakpoint.
68 * @brief Removes breakpoint by id
76 * @param[in] engine to evaluate conditions for conditional breakpoint
92 * @brief Removes breakpoint by filter function
93 * @param[in] filter function to apply to every breakpoint
Dbreakpoint.h28 /// @brief Breakpoint without condition, can be set in multiple locations
29 class Breakpoint final : public BreakpointBase {
31 explicit Breakpoint(BreakpointId id, SourceFileFilter &&filter, size_t line, bool isUrlPattern) in Breakpoint() function
36 NO_COPY_SEMANTIC(Breakpoint);
37 NO_MOVE_SEMANTIC(Breakpoint);
39 ~Breakpoint() override = default;
Dbreakpoint.cpp16 #include "breakpoint.h"
24 bool Breakpoint::SetLocations(std::set<std::string_view> &sourceFiles, const DebugInfoCache &debugC… in SetLocations()
29 … LOG(WARNING, DEBUGGER) << "Pending breakpoint, 0 locations resolved currently, id = " << GetId(); in SetLocations()
40 void Breakpoint::TryResolveImpl(const panda_file::File &file, const panda_file::DebugInfoExtractor … in TryResolveImpl()
/arkcompiler/toolchain/tooling/static/debugger/
Dbreakpoint_base.h31 /// @brief Base breakpoint class
42 * @brief Get breakpoint id
51 * @brief If breakpoint resolved and can be hit
60 * @brief Tries to resolve breakpoint, shuould be called on load new panda file
63 * @returns Was breakpoint resolved
73 * @brief Applies function to every breakpoint location
74 * @param[in] func function to apply to every breakpoint
81 * @param[in] engine to evaluate conditions for conditional breakpoint
87 * @brief Set locations for current breakpoint
88 * @param[out] sourceFiles returns sourceFiles where breakpoint was set
[all …]
Dbreakpoint_storage.h29 …* @brief Blocking breakpoint storage class, adds functionality to add/remove/enable/disable breakp…
48 * @brief Get breakpoint id vector by location
55 * @brief Set a breakpoint with optional condition.
58 * @param[out] sourceFiles returns sourceFiles where breakpoint was set
61 * @returns BreakpointId of set breakpoint.
68 * @brief Removes breakpoint by id
76 * @param[in] engine to evaluate conditions for conditional breakpoint
92 * @brief Removes breakpoint by filter function
93 * @param[in] filter function to apply to every breakpoint
Dbreakpoint.h28 /// @brief Breakpoint without condition, can be set in multiple locations
29 class Breakpoint final : public BreakpointBase {
31 explicit Breakpoint(BreakpointId id, SourceFileFilter &&filter, size_t line, bool isUrlPattern) in Breakpoint() function
36 NO_COPY_SEMANTIC(Breakpoint);
37 NO_MOVE_SEMANTIC(Breakpoint);
39 ~Breakpoint() override = default;
Dbreakpoint.cpp16 #include "breakpoint.h"
24 bool Breakpoint::SetLocations(std::set<std::string_view> &sourceFiles, const DebugInfoCache &debugC… in SetLocations()
29 … LOG(WARNING, DEBUGGER) << "Pending breakpoint, 0 locations resolved currently, id = " << GetId(); in SetLocations()
40 void Breakpoint::TryResolveImpl(const panda_file::File &file, const panda_file::DebugInfoExtractor … in TryResolveImpl()
/arkcompiler/ets_runtime/ecmascript/debugger/
Djs_debugger_interface.h66 … * \brief called by the ecmavm when breakpoint hits. Thread where breakpoint hits is stopped until
68 …* @param thread Identifier of the thread where breakpoint hits. Now the callback is called in the …
70 * @param location Breakpoint location
72 virtual void Breakpoint(const JSPtLocation &location) = 0;
107 …* \brief called by the ecmavm when symbolic breakpoint hits. Thread where symbolic breakpoint hits…
143 * \brief Set breakpoint to \param location with an optional \param condition
144 * @param location Breakpoint location
151 * \brief Remove breakpoint from \param location
152 * @param location Breakpoint location
Djs_debugger.h59 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()
64breakpoint << "jsPandaFile:" << "\"" << ptMethod_->GetJSPandaFile()->GetJSPandaFileDesc() << "\""; in ToString()
65 breakpoint << "]"; in ToString()
66 return breakpoint.str(); in ToString()
198 … LOG_DEBUGGER(ERROR) << "RemoveSymbolicBreakpoint: invalid symbol breakpoint " << functionName; in RemoveSymbolicBreakpoint()
213 bool IsBreakpointCondSatisfied(std::optional<JSBreakpoint> breakpoint) const;
Djs_debugger.cpp33 LOG_DEBUGGER(ERROR) << "SetBreakpoint: Invalid breakpoint location"; in SetBreakpoint()
41 LOG_DEBUGGER(WARN) << "SetBreakpoint: Breakpoint already exists"; in SetBreakpoint()
57 LOG_DEBUGGER(ERROR) << "SetSmartBreakpoint: Invalid breakpoint location"; in SetSmartBreakpoint()
65 LOG_DEBUGGER(WARN) << "SetSmartBreakpoint: Breakpoint already exists"; in SetSmartBreakpoint()
81 LOG_DEBUGGER(ERROR) << "RemoveBreakpoint: Breakpoint not found"; in RemoveBreakpoint()
149 hooks_->Breakpoint(smartLocation); in HandleBreakpoint()
153 auto breakpoint = FindBreakpoint(method, bcOffset); in HandleBreakpoint() local
154 if (!breakpoint.has_value() || !IsBreakpointCondSatisfied(breakpoint)) { in HandleBreakpoint()
158 breakpoint.value().GetSourceFile()}; in HandleBreakpoint()
160 hooks_->Breakpoint(location); in HandleBreakpoint()
[all …]
/arkcompiler/toolchain/tooling/dynamic/test/testcases/
Djs_asyn_stack_test.h40 // set breakpoint in JsAsynStackTest()
52 // hit breakpoint in JsAsynStackTest()
59 // hit breakpoint in JsAsynStackTest()
65 // hit breakpoint in JsAsynStackTest()
71 // hit breakpoint in JsAsynStackTest()
77 // hit breakpoint in JsAsynStackTest()
83 // hit breakpoint in JsAsynStackTest()
123 std::string breakpoint = ""; in RecvAsyncMessageInfo() local
124 breakpoint = hitBreakpoints->Get(0)->GetString(); in RecvAsyncMessageInfo()
125 if (ret != Result::SUCCESS || breakpoint.find(sourceFile_) == std::string::npos || in RecvAsyncMessageInfo()
[all …]
Djs_multiple_breakpoint_in_function_test.h37 // 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 …]
Djs_multiple_common_breakpoint_test.h37 // 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()
Djs_breakpoint_async_test.h37 // 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()
Djs_breakpoint_test.h37 // 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()
Djs_accelerate_launch_test.h64 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()
Djs_breakpoint_in_different_branch.h37 // 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()
Djs_breakpoint_arrow_test.h37 // 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()
Djs_breakpoint_cannot_hit_test.h37 // 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()
Djs_heapusage_test.h37 // 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()
Djs_special_location_breakpoint_test.h37 // 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()
Djs_step_into_test.h34 // 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()
Djs_step_out_test.h34 // 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()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/
Dsource_meta.py42 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

1234567