I am new to kotlin, multiplatform, and I'm trying ...
# multiplatform
s
I am new to kotlin, multiplatform, and I'm trying to debug a slightly modified version of the doodle contact tutorial: https://github.com/nacular/doodle-tutorials/tree/master/Contacts I generate source maps, and step through my own commonMain and jsMain source in the debugger, but I cannot "load content" from anything in
<webpack://doodle-contacts/compileSync/*>
Chrome/Debug Error:
Could not load content for
<webpack://doodle-contacts/compileSync/js/main/productionExecutable/kotlin/jsMainSources/libraries/stdlib/js/src/kotlin/collections/HashSet.kt?fb14>
Fetch through target failed: Unsupported URL scheme; Fallback: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME)
I would like to be able to step through kotlin library code, just like I do with JDK library code. I think I should be able to look at and step through any kotlin src in commonMain. But am I trying to do something that cannot be done? Here is my "most recent"
Copy code
js(IR) {
        browser {
            compilations.all {
                kotlinOptions {
                    metaInfo = true
                    sourceMap = true
                    sourceMapEmbedSources = "always"
                    verbose = true
                }
            }
            commonWebpackConfig {
                devServer?.`open` = false
                devServer?.`port` = 9090
                mode = DEVELOPMENT
                devtool = EVAL_SOURCE_MAP
                sourceMaps = true
                showProgress = true
            }
        }
        binaries.executable()
    }
}
I added a screen-shot of my debugger in the thread.
cannot-load-kt-content.png