Skip to content

Commit 51068e7

Browse files
committed
change default port to 8172, make dev script always run with --debug flag
1 parent fdd7b6c commit 51068e7

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ When you want to debug import it and call the start function:
2020
-- perhaps hidden behind an env variable or whatever
2121
if enable_debugger then
2222
local debugger = require "mobdebug"
23-
debugger.start("127.0.0.1", 18172) -- NOTE: the port here, this has to be the same as in your editor config
23+
debugger.start("127.0.0.1", 8172) -- NOTE: the port here, this has to be the same as in your editor config
2424
end
2525
```
2626

@@ -57,7 +57,7 @@ dap.configurations.lua = {
5757

5858
-- port: (Optional: Defaults to 18172) the port on which the server is running
5959
-- Please configure the same on your client
60-
port = 18172,
60+
port = 8172,
6161
},
6262
}
6363
```

dev/mobdap/dev.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
(defonce nrepl-server (atom {}))
66

7-
(defn -main [& args]
7+
(defn -main [& _]
88
(reset! nrepl-server (nrepl/start-server :port (or (System/getenv "NREPL_PORT") 45999)))
9-
(apply mobdap/-main args))
9+
(apply mobdap/-main ["--debug"]))

run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
cd "$(dirname "$0")" || exit
66

7-
lein with-profile dev run --debug
7+
lein with-profile dev run

src/mobdap/handler.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@
300300

301301
(defn handle-launch [handler message]
302302
(let [adapter (:adapter handler)
303-
port (or (get-in message [:arguments :port]) 18172)
303+
port (or (get-in message [:arguments :port]) 8172)
304304
arguments (:arguments message)
305305
root-dir (:rootdir arguments)
306306
source-dirs (or (:sourcedirs arguments) [])

0 commit comments

Comments
 (0)