• Home
  • Raw
  • Download

Lines Matching full:url

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