in src/chromeDebugAdapter.ts [588:601]
function replaceWebRootInSourceMapPathOverridesEntry(webRoot: string, entry: string, warnOnMissing: boolean): string {
const webRootIndex = entry.indexOf('${webRoot}');
if (webRootIndex === 0) {
if (webRoot) {
return entry.replace('${webRoot}', webRoot);
} else if (warnOnMissing) {
logger.log('Warning: sourceMapPathOverrides entry contains ${webRoot}, but webRoot is not set');
}
} else if (webRootIndex > 0) {
logger.log('Warning: in a sourceMapPathOverrides entry, ${webRoot} is only valid at the beginning of the path');
}
return entry;
}