Fork me on GitHub

Is anyone able to use dap for clojurescript like described in ?


@yyoncho using this config when trying to start dap-mode

    "version": "0.2.0",
    "configurations": [
            "type": "chrome",
            "request": "launch",
            "name": "DAP clojurescript",
            "url": "",
            "sourceMaps": true,
            "webRoot": "${workspaceFolder}",
            "sourceMapPathOverrides": {
                "*": "${workspaceFolder}/src/main/*"
            "runtimeExecutable": "/run/current-system/sw/bin/google-chrome-stable",
            "runtimeArgs": [
gives me back crbug/1173575, non-JS module files deprecated. and chrome says This site can't be reached


I have partially solved this issue by adding:

 {3000 {:root "public" :handler user/app}}
to my shadow-cljs configuration, and pointing the url in the dap config to 3000 instead. So now I'm able to get in the debugger, but it doesn't seem to work


restarting emacs solved the residual problems I was having 🎉


A few times, to people having problems with MUI and shadow-cljs I have suggested to set :output-feature-set :es5 which appeared to work. But seems like it's not the right way to do it. The correct fix would be to use :js-options {:entry-keys ["module" "browser" "main"]} as per;cid=C03S1L9DN

👍 1

(note that :es5 does work and the end result is likely the same, only downside is that more stuff might get polyfilled than needs to be)