• Home
  • Raw
  • Download

Lines Matching full:url

99     const std::string &url = extractor->GetSourceFile(mainMethodIndex);  in NotifyScriptParsed()  local
102 if (MatchUrlAndFileName(url, fileName)) { in NotifyScriptParsed()
104 << "url: " << url << " fileName: " << fileName; in NotifyScriptParsed()
108 SaveParsedScriptsAndUrl(fileName, url, recordName, source); in NotifyScriptParsed()
112 …ed_ptr<BreakpointReturnInfo>> DebuggerImpl::SetBreakpointsWhenParsingScript(const std::string &url) in SetBreakpointsWhenParsingScript() argument
115 for (const auto &breakpoint : breakpointPendingMap_[url]) { in SetBreakpointsWhenParsingScript()
128 bool DebuggerImpl::NeedToSetBreakpointsWhenParsingScript(const std::string &url) in NeedToSetBreakpointsWhenParsingScript() argument
130 if (breakpointPendingMap_.find(url) != breakpointPendingMap_.end()) { in NeedToSetBreakpointsWhenParsingScript()
131 return !breakpointPendingMap_[url].empty(); in NeedToSetBreakpointsWhenParsingScript()
155 void DebuggerImpl::SaveParsedScriptsAndUrl(const std::string &fileName, const std::string &url, in SaveParsedScriptsAndUrl() argument
158 // Save recordName to its corresponding url in SaveParsedScriptsAndUrl()
159 recordNames_[url].insert(recordName); in SaveParsedScriptsAndUrl()
160 // Save parsed fileName to its corresponding url in SaveParsedScriptsAndUrl()
161 urlFileNameMap_[url].insert(fileName); in SaveParsedScriptsAndUrl()
163 …std::shared_ptr<PtScript> script = std::make_shared<PtScript>(g_scriptId++, fileName, url, source); in SaveParsedScriptsAndUrl()
166 if (IsLaunchAccelerateMode() && NeedToSetBreakpointsWhenParsingScript(url)) { in SaveParsedScriptsAndUrl()
167 script->SetLocations(SetBreakpointsWhenParsingScript(url)); in SaveParsedScriptsAndUrl()
187 const std::string &url = extractor->GetSourceFile(methodId); in NotifyScriptParsedBySendable() local
189 // Check url path & is debugable in module.json in NotifyScriptParsedBySendable()
195 // Check if this (url, fileName) pair has already been parsed in NotifyScriptParsedBySendable()
196 if (MatchUrlAndFileName(url, fileName)) { in NotifyScriptParsedBySendable()
198 << "url: " << url << " fileName: " << fileName; in NotifyScriptParsedBySendable()
204 SaveParsedScriptsAndUrl(fileName, url, recordName, source); in NotifyScriptParsedBySendable()
208 bool DebuggerImpl::MatchUrlAndFileName(const std::string &url, const std::string &fileName) in MatchUrlAndFileName() argument
210 auto urlFileNameIter = urlFileNameMap_.find(url); in MatchUrlAndFileName()
338 // In merge abc scenario, need to use the source file to match to get right url in NotifyPaused()
339 if (!MatchScripts(scriptFunc, location->GetSourceFile(), ScriptMatchType::URL) || in NotifyPaused()
1192 const std::string &url = iter->second->GetUrl(); in GetPossibleBreakpoints() local
1193 std::vector<DebugInfoExtractor *> extractors = GetExtractors(url); in GetPossibleBreakpoints()
1205 if (extractor->MatchWithLocation(callbackFunc, line, column, url, GetRecordName(url))) { in GetPossibleBreakpoints()
1249 if (!MatchScripts(scriptFunc, metaData.url_, ScriptMatchType::URL)) { in RemoveBreakpoint()
1250 LOG_DEBUGGER(ERROR) << "RemoveBreakpoint: Unknown url: " << metaData.url_; in RemoveBreakpoint()
1278 std::string url = params.GetUrl(); in RemoveBreakpointsByUrl() local
1282 if (!MatchScripts(scriptMatchCallback, url, ScriptMatchType::URL)) { in RemoveBreakpointsByUrl()
1283 LOG_DEBUGGER(ERROR) << "RemoveBreakpointByUrl: Unknown url: " << url; in RemoveBreakpointsByUrl()
1284 return DispatchResponse::Fail("Unknown url"); in RemoveBreakpointsByUrl()
1286 if (!DebuggerApi::RemoveBreakpointsByUrl(jsDebugger_, url)) { in RemoveBreakpointsByUrl()
1290 LOG_DEBUGGER(INFO) << "All breakpoints on " << url << " are removed"; in RemoveBreakpointsByUrl()
1292 breakpointPendingMap_.erase(url); in RemoveBreakpointsByUrl()
1312 void DebuggerImpl::AddBreakpointDetail(const std::string &url, in AddBreakpointDetail() argument
1317 std::vector<PtScript *> ptScripts = MatchAllScripts(url); in AddBreakpointDetail()
1324 BreakpointDetails metaData{lineNumber, 0, url}; in AddBreakpointDetail()
1336 const std::string &url = params.GetUrl(); in SetBreakpointByUrl() local
1346 if (!MatchScripts(scriptFunc, url, ScriptMatchType::URL)) { in SetBreakpointByUrl()
1347 LOG_DEBUGGER(ERROR) << "SetBreakpointByUrl: Unknown url: " << url; in SetBreakpointByUrl()
1351 std::vector<DebugInfoExtractor *> extractors = GetExtractors(url); in SetBreakpointByUrl()
1370 … (!extractor->MatchWithLocation(callbackFunc, lineNumber, columnNumber, url, GetRecordName(url))) { in SetBreakpointByUrl()
1376 AddBreakpointDetail(url, lineNumber, outId, outLocations); in SetBreakpointByUrl()
1463 const std::string &url = breakpoint.GetUrl(); in ProcessSingleBreakpoint() local
1474 if (!MatchScripts(scriptFunc, url, ScriptMatchType::URL)) { in ProcessSingleBreakpoint()
1475 LOG_DEBUGGER(ERROR) << "GetPossibleAndSetBreakpointByUrl: Unknown url: " << url; in ProcessSingleBreakpoint()
1479 std::vector<DebugInfoExtractor *> extractors = GetExtractors(url); in ProcessSingleBreakpoint()
1497 …actor->MatchWithLocation(matchLocationCbFunc, lineNumber, columnNumber, url, GetRecordName(url))) { in ProcessSingleBreakpoint()
1503 BreakpointDetails bpMetaData {lineNumber, 0, url}; in ProcessSingleBreakpoint()
1741 std::vector<DebugInfoExtractor *> DebuggerImpl::GetExtractors(const std::string &url) in GetExtractors() argument
1744 // match patch file first if it contains diff for the url, and currently only support the file in GetExtractors()
1745 // specified by the url change as a whole in GetExtractors()
1746 extractors = DebuggerApi::GetPatchExtractors(vm_, url); in GetExtractors()
1751 std::vector<PtScript *> ptScripts = MatchAllScripts(url); in GetExtractors()
1818 std::string url = extractor->GetSourceFile(methodId); in GenerateCallFrame() local
1823 if (!MatchScripts(scriptFunc, url, ScriptMatchType::URL)) { in GenerateCallFrame()
1824 LOG_DEBUGGER(ERROR) << "GenerateCallFrame: Unknown url: " << url; in GenerateCallFrame()
1846 .SetUrl(url) in GenerateCallFrame()
1922 if (MatchScripts(scriptFunc, extractor->GetSourceFile(methodId), ScriptMatchType::URL)) { in GetLocalScopeChain()
2010 … if (MatchScripts(scriptFunc, extractor->GetSourceFile(methodId), ScriptMatchType::URL)) { in GetClosureScopeChains()