Lines Matching full:url
93 const std::string &url = extractor->GetSourceFile(mainMethodIndex); in NotifyScriptParsed() local
96 if (MatchUrlAndFileName(url, fileName)) { in NotifyScriptParsed()
98 << "url: " << url << " fileName: " << fileName; in NotifyScriptParsed()
102 SaveParsedScriptsAndUrl(fileName, url, recordName, source); in NotifyScriptParsed()
106 …ed_ptr<BreakpointReturnInfo>> DebuggerImpl::SetBreakpointsWhenParsingScript(const std::string &url) in SetBreakpointsWhenParsingScript() argument
109 for (const auto &breakpoint : breakpointPendingMap_[url]) { in SetBreakpointsWhenParsingScript()
122 bool DebuggerImpl::NeedToSetBreakpointsWhenParsingScript(const std::string &url) in NeedToSetBreakpointsWhenParsingScript() argument
124 if (breakpointPendingMap_.find(url) != breakpointPendingMap_.end()) { in NeedToSetBreakpointsWhenParsingScript()
125 return !breakpointPendingMap_[url].empty(); in NeedToSetBreakpointsWhenParsingScript()
149 void DebuggerImpl::SaveParsedScriptsAndUrl(const std::string &fileName, const std::string &url, in SaveParsedScriptsAndUrl() argument
152 // Save recordName to its corresponding url in SaveParsedScriptsAndUrl()
153 recordNames_[url].insert(recordName); in SaveParsedScriptsAndUrl()
154 // Save parsed fileName to its corresponding url in SaveParsedScriptsAndUrl()
155 urlFileNameMap_[url].insert(fileName); in SaveParsedScriptsAndUrl()
157 …std::shared_ptr<PtScript> script = std::make_shared<PtScript>(g_scriptId++, fileName, url, source); in SaveParsedScriptsAndUrl()
160 if (IsLaunchAccelerateMode() && NeedToSetBreakpointsWhenParsingScript(url)) { in SaveParsedScriptsAndUrl()
161 script->SetLocations(SetBreakpointsWhenParsingScript(url)); in SaveParsedScriptsAndUrl()
181 const std::string &url = extractor->GetSourceFile(methodId); in NotifyScriptParsedBySendable() local
183 // Check url path & is debugable in module.json in NotifyScriptParsedBySendable()
189 // Check if this (url, fileName) pair has already been parsed in NotifyScriptParsedBySendable()
190 if (MatchUrlAndFileName(url, fileName)) { in NotifyScriptParsedBySendable()
192 << "url: " << url << " fileName: " << fileName; in NotifyScriptParsedBySendable()
198 SaveParsedScriptsAndUrl(fileName, url, recordName, source); in NotifyScriptParsedBySendable()
202 bool DebuggerImpl::MatchUrlAndFileName(const std::string &url, const std::string &fileName) in MatchUrlAndFileName() argument
204 auto urlFileNameIter = urlFileNameMap_.find(url); in MatchUrlAndFileName()
332 // In merge abc scenario, need to use the source file to match to get right url in NotifyPaused()
333 if (!MatchScripts(scriptFunc, location->GetSourceFile(), ScriptMatchType::URL) || in NotifyPaused()
1205 const std::string &url = iter->second->GetUrl(); in GetPossibleBreakpoints() local
1206 std::vector<DebugInfoExtractor *> extractors = GetExtractors(url); in GetPossibleBreakpoints()
1218 if (extractor->MatchWithLocation(callbackFunc, line, column, url, GetRecordName(url))) { in GetPossibleBreakpoints()
1262 if (!MatchScripts(scriptFunc, metaData.url_, ScriptMatchType::URL)) { in RemoveBreakpoint()
1263 LOG_DEBUGGER(ERROR) << "RemoveBreakpoint: Unknown url: " << metaData.url_; in RemoveBreakpoint()
1291 std::string url = params.GetUrl(); in RemoveBreakpointsByUrl() local
1295 if (!MatchScripts(scriptMatchCallback, url, ScriptMatchType::URL)) { in RemoveBreakpointsByUrl()
1296 LOG_DEBUGGER(ERROR) << "RemoveBreakpointByUrl: Unknown url: " << url; in RemoveBreakpointsByUrl()
1297 return DispatchResponse::Fail("Unknown url"); in RemoveBreakpointsByUrl()
1299 if (!DebuggerApi::RemoveBreakpointsByUrl(jsDebugger_, url)) { in RemoveBreakpointsByUrl()
1303 LOG_DEBUGGER(INFO) << "All breakpoints on " << url << " are removed"; in RemoveBreakpointsByUrl()
1305 breakpointPendingMap_.erase(url); in RemoveBreakpointsByUrl()
1325 void DebuggerImpl::AddBreakpointDetail(const std::string &url, in AddBreakpointDetail() argument
1330 std::vector<PtScript *> ptScripts = MatchAllScripts(url); in AddBreakpointDetail()
1337 BreakpointDetails metaData{lineNumber, 0, url}; in AddBreakpointDetail()
1350 const std::string &url = params.GetUrl(); in SetBreakpointByUrl() local
1360 if (!MatchScripts(scriptFunc, url, ScriptMatchType::URL)) { in SetBreakpointByUrl()
1361 LOG_DEBUGGER(ERROR) << "SetBreakpointByUrl: Unknown url: " << url; in SetBreakpointByUrl()
1365 std::vector<DebugInfoExtractor *> extractors = GetExtractors(url); in SetBreakpointByUrl()
1384 … (!extractor->MatchWithLocation(callbackFunc, lineNumber, columnNumber, url, GetRecordName(url))) { in SetBreakpointByUrl()
1390 AddBreakpointDetail(url, lineNumber, outId, outLocations); in SetBreakpointByUrl()
1477 const std::string &url = breakpoint.GetUrl(); in ProcessSingleBreakpoint() local
1488 if (!MatchScripts(scriptFunc, url, ScriptMatchType::URL)) { in ProcessSingleBreakpoint()
1489 LOG_DEBUGGER(ERROR) << "GetPossibleAndSetBreakpointByUrl: Unknown url: " << url; in ProcessSingleBreakpoint()
1493 std::vector<DebugInfoExtractor *> extractors = GetExtractors(url); in ProcessSingleBreakpoint()
1511 …actor->MatchWithLocation(matchLocationCbFunc, lineNumber, columnNumber, url, GetRecordName(url))) { in ProcessSingleBreakpoint()
1517 BreakpointDetails bpMetaData {lineNumber, 0, url}; in ProcessSingleBreakpoint()
1755 std::vector<DebugInfoExtractor *> DebuggerImpl::GetExtractors(const std::string &url) in GetExtractors() argument
1758 // match patch file first if it contains diff for the url, and currently only support the file in GetExtractors()
1759 // specified by the url change as a whole in GetExtractors()
1760 extractors = DebuggerApi::GetPatchExtractors(vm_, url); in GetExtractors()
1765 std::vector<PtScript *> ptScripts = MatchAllScripts(url); in GetExtractors()
1832 std::string url = extractor->GetSourceFile(methodId); in GenerateCallFrame() local
1837 if (!MatchScripts(scriptFunc, url, ScriptMatchType::URL)) { in GenerateCallFrame()
1838 LOG_DEBUGGER(ERROR) << "GenerateCallFrame: Unknown url: " << url; in GenerateCallFrame()
1860 .SetUrl(url) in GenerateCallFrame()
1936 if (MatchScripts(scriptFunc, extractor->GetSourceFile(methodId), ScriptMatchType::URL)) { in GetLocalScopeChain()
2024 … if (MatchScripts(scriptFunc, extractor->GetSourceFile(methodId), ScriptMatchType::URL)) { in GetClosureScopeChains()