Lines Matching full:url
99 const std::string &url = extractor->GetSourceFile(mainMethodIndex); in NotifyScriptParsed() local
101 recordNames_[url].insert(recordName); in NotifyScriptParsed()
105 if (MatchUrlAndFileName(url, fileName)) { in NotifyScriptParsed()
108 urlFileNameMap_[url].insert(fileName); in NotifyScriptParsed()
111 …std::unique_ptr<PtScript> script = std::make_unique<PtScript>(g_scriptId++, fileName, url, source); in NotifyScriptParsed()
120 bool DebuggerImpl::SendableScriptParsed(const std::string &fileName, const std::string &url, in SendableScriptParsed() argument
127 recordNames_[url].insert(recordName); in SendableScriptParsed()
132 urlFileNameMap_[url].insert(fileName); in SendableScriptParsed()
134 …std::unique_ptr<PtScript> script = std::make_unique<PtScript>(g_scriptId++, fileName, url, source); in SendableScriptParsed()
175 const std::string &url = extractor->GetSourceFile(methodId); in SendableMethodEntry() local
177 if (!MatchUrlAndFileName(url, fileName)) { in SendableMethodEntry()
181 SendableScriptParsed(fileName, url, source, recordName); in SendableMethodEntry()
187 bool DebuggerImpl::MatchUrlAndFileName(const std::string &url, const std::string &fileName) in MatchUrlAndFileName() argument
189 auto urlFileNameIter = urlFileNameMap_.find(url); in MatchUrlAndFileName()
192 LOG_DEBUGGER(WARN) << "MatchUrlAndFileName: already loaded: " << url; in MatchUrlAndFileName()
318 // In merge abc scenario, need to use the source file to match to get right url in NotifyPaused()
319 if (!MatchScripts(scriptFunc, location->GetSourceFile(), ScriptMatchType::URL) || in NotifyPaused()
1116 const std::string &url = iter->second->GetUrl(); in GetPossibleBreakpoints() local
1117 std::vector<DebugInfoExtractor *> extractors = GetExtractors(url); in GetPossibleBreakpoints()
1129 if (extractor->MatchWithLocation(callbackFunc, line, column, url, GetRecordName(url))) { in GetPossibleBreakpoints()
1173 if (!MatchScripts(scriptFunc, metaData.url_, ScriptMatchType::URL)) { in RemoveBreakpoint()
1174 LOG_DEBUGGER(ERROR) << "RemoveBreakpoint: Unknown url: " << metaData.url_; in RemoveBreakpoint()
1202 std::string url = params.GetUrl(); in RemoveBreakpointsByUrl() local
1206 if (!MatchScripts(scriptMatchCallback, url, ScriptMatchType::URL)) { in RemoveBreakpointsByUrl()
1207 LOG_DEBUGGER(ERROR) << "RemoveBreakpointByUrl: Unknown url: " << url; in RemoveBreakpointsByUrl()
1208 return DispatchResponse::Fail("Unknown url"); in RemoveBreakpointsByUrl()
1210 if (!DebuggerApi::RemoveBreakpointsByUrl(jsDebugger_, url)) { in RemoveBreakpointsByUrl()
1214 LOG_DEBUGGER(INFO) << "All breakpoints on " << url << " are removed"; in RemoveBreakpointsByUrl()
1233 void DebuggerImpl::AddBreakpointDetail(const std::string &url, in AddBreakpointDetail() argument
1238 std::vector<PtScript *> ptScripts = MatchAllScripts(url); in AddBreakpointDetail()
1245 BreakpointDetails metaData{lineNumber, 0, url}; in AddBreakpointDetail()
1257 const std::string &url = params.GetUrl(); in SetBreakpointByUrl() local
1267 if (!MatchScripts(scriptFunc, url, ScriptMatchType::URL)) { in SetBreakpointByUrl()
1268 LOG_DEBUGGER(ERROR) << "SetBreakpointByUrl: Unknown url: " << url; in SetBreakpointByUrl()
1272 std::vector<DebugInfoExtractor *> extractors = GetExtractors(url); in SetBreakpointByUrl()
1291 … (!extractor->MatchWithLocation(callbackFunc, lineNumber, columnNumber, url, GetRecordName(url))) { in SetBreakpointByUrl()
1297 AddBreakpointDetail(url, lineNumber, outId, outLocations); in SetBreakpointByUrl()
1333 const std::string &url = breakpoint.GetUrl(); in ProcessSingleBreakpoint() local
1344 if (!MatchScripts(scriptFunc, url, ScriptMatchType::URL)) { in ProcessSingleBreakpoint()
1345 LOG_DEBUGGER(ERROR) << "GetPossibleAndSetBreakpointByUrl: Unknown url: " << url; in ProcessSingleBreakpoint()
1349 std::vector<DebugInfoExtractor *> extractors = GetExtractors(url); in ProcessSingleBreakpoint()
1367 …actor->MatchWithLocation(matchLocationCbFunc, lineNumber, columnNumber, url, GetRecordName(url))) { in ProcessSingleBreakpoint()
1373 BreakpointDetails bpMetaData {lineNumber, 0, url}; in ProcessSingleBreakpoint()
1611 std::vector<DebugInfoExtractor *> DebuggerImpl::GetExtractors(const std::string &url) in GetExtractors() argument
1614 // match patch file first if it contains diff for the url, and currently only support the file in GetExtractors()
1615 // specified by the url change as a whole in GetExtractors()
1616 extractors = DebuggerApi::GetPatchExtractors(vm_, url); in GetExtractors()
1621 std::vector<PtScript *> ptScripts = MatchAllScripts(url); in GetExtractors()
1688 std::string url = extractor->GetSourceFile(methodId); in GenerateCallFrame() local
1693 if (!MatchScripts(scriptFunc, url, ScriptMatchType::URL)) { in GenerateCallFrame()
1694 LOG_DEBUGGER(ERROR) << "GenerateCallFrame: Unknown url: " << url; in GenerateCallFrame()
1716 .SetUrl(url) in GenerateCallFrame()
1792 if (MatchScripts(scriptFunc, extractor->GetSourceFile(methodId), ScriptMatchType::URL)) { in GetLocalScopeChain()
1880 … if (MatchScripts(scriptFunc, extractor->GetSourceFile(methodId), ScriptMatchType::URL)) { in GetClosureScopeChains()