From 52f14702f36f4060df6f91629feaa686f7cb7c03 Mon Sep 17 00:00:00 2001 From: Konstantin Ulitin Date: Wed, 19 Oct 2016 16:18:56 +0300 Subject: [PATCH] Unable to debug if sourcemap contains absolute paths on windows (WEB-23002) --- .../src/org/jetbrains/debugger/sourcemap/SourceResolver.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/script-debugger/backend/src/org/jetbrains/debugger/sourcemap/SourceResolver.kt b/platform/script-debugger/backend/src/org/jetbrains/debugger/sourcemap/SourceResolver.kt index 7fc21aeea3dd..ca16633290ef 100644 --- a/platform/script-debugger/backend/src/org/jetbrains/debugger/sourcemap/SourceResolver.kt +++ b/platform/script-debugger/backend/src/org/jetbrains/debugger/sourcemap/SourceResolver.kt @@ -138,7 +138,7 @@ class SourceResolver(private val rawSources: List, internal val canonica fun canonicalizePath(url: String, baseUrl: Url, baseUrlIsFile: Boolean): String { var path = url - if (url[0] != '/') { + if (!FileUtil.isAbsolute(url)) { val basePath = baseUrl.path if (baseUrlIsFile) { val lastSlashIndex = basePath.lastIndexOf('/')