Lines Matching refs:url
94 const std::string &url = extractor->GetSourceFile(mainMethodIndex);
100 recordNames_[url].insert(recordName);
104 if (MatchUrlAndFileName(url, fileName)) {
107 urlFileNameMap_[url].insert(fileName);
110 std::unique_ptr<PtScript> script = std::make_unique<PtScript>(g_scriptId++, fileName, url, source);
119 bool DebuggerImpl::SendableScriptParsed(const std::string &fileName, const std::string &url,
126 recordNames_[url].insert(recordName);
131 urlFileNameMap_[url].insert(fileName);
133 std::unique_ptr<PtScript> script = std::make_unique<PtScript>(g_scriptId++, fileName, url, source);
174 const std::string &url = extractor->GetSourceFile(methodId);
176 if (!MatchUrlAndFileName(url, fileName)) {
180 SendableScriptParsed(fileName, url, source, recordName);
186 bool DebuggerImpl::MatchUrlAndFileName(const std::string &url, const std::string &fileName)
188 auto urlFileNameIter = urlFileNameMap_.find(url);
191 LOG_DEBUGGER(WARN) << "MatchUrlAndFileName: already loaded: " << url;
317 // In merge abc scenario, need to use the source file to match to get right url
1114 const std::string &url = iter->second->GetUrl();
1115 std::vector<DebugInfoExtractor *> extractors = GetExtractors(url);
1127 if (extractor->MatchWithLocation(callbackFunc, line, column, url, GetRecordName(url))) {
1172 LOG_DEBUGGER(ERROR) << "RemoveBreakpoint: Unknown url: " << metaData.url_;
1200 std::string url = params.GetUrl();
1204 if (!MatchScripts(scriptMatchCallback, url, ScriptMatchType::URL)) {
1205 LOG_DEBUGGER(ERROR) << "RemoveBreakpointByUrl: Unknown url: " << url;
1206 return DispatchResponse::Fail("Unknown url");
1208 if (!DebuggerApi::RemoveBreakpointsByUrl(jsDebugger_, url)) {
1212 LOG_DEBUGGER(INFO) << "All breakpoints on " << url << " are removed";
1231 void DebuggerImpl::AddBreakpointDetail(const std::string &url,
1236 std::vector<PtScript *> ptScripts = MatchAllScripts(url);
1243 BreakpointDetails metaData{lineNumber, 0, url};
1256 const std::string &url = params.GetUrl();
1266 if (!MatchScripts(scriptFunc, url, ScriptMatchType::URL)) {
1267 LOG_DEBUGGER(ERROR) << "SetBreakpointByUrl: Unknown url: " << url;
1271 std::vector<DebugInfoExtractor *> extractors = GetExtractors(url);
1290 if (!extractor->MatchWithLocation(callbackFunc, lineNumber, columnNumber, url, GetRecordName(url))) {
1296 AddBreakpointDetail(url, lineNumber, outId, outLocations);
1332 const std::string &url = breakpoint.GetUrl();
1343 if (!MatchScripts(scriptFunc, url, ScriptMatchType::URL)) {
1344 LOG_DEBUGGER(ERROR) << "GetPossibleAndSetBreakpointByUrl: Unknown url: " << url;
1348 std::vector<DebugInfoExtractor *> extractors = GetExtractors(url);
1366 if (!extractor->MatchWithLocation(matchLocationCbFunc, lineNumber, columnNumber, url, GetRecordName(url))) {
1372 BreakpointDetails bpMetaData {lineNumber, 0, url};
1610 std::vector<DebugInfoExtractor *> DebuggerImpl::GetExtractors(const std::string &url)
1613 // match patch file first if it contains diff for the url, and currently only support the file
1614 // specified by the url change as a whole
1615 extractors = DebuggerApi::GetPatchExtractors(vm_, url);
1620 std::vector<PtScript *> ptScripts = MatchAllScripts(url);
1687 std::string url = extractor->GetSourceFile(methodId);
1692 if (!MatchScripts(scriptFunc, url, ScriptMatchType::URL)) {
1693 LOG_DEBUGGER(ERROR) << "GenerateCallFrame: Unknown url: " << url;
1715 .SetUrl(url)