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('/')