summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@dashbit.co>2023-01-13 11:23:27 +0100
committerJosé Valim <jose.valim@dashbit.co>2023-01-13 11:23:27 +0100
commit7590e08106003ad95bf5001072c0cfc5cea3e271 (patch)
tree87e992901c80625d6a7e7e4804cb665f3bb5780c /bin
parent09d35db6c1a53e417d402ce88a128cdf20b1de01 (diff)
downloadelixir-7590e08106003ad95bf5001072c0cfc5cea3e271.tar.gz
Make pry opt-in on dbg with --dbg pry
Diffstat (limited to 'bin')
-rwxr-xr-xbin/elixir2
-rw-r--r--bin/elixir.bat2
-rwxr-xr-xbin/iex2
-rw-r--r--bin/iex.bat2
4 files changed, 4 insertions, 4 deletions
diff --git a/bin/elixir b/bin/elixir
index 3aaa1d45a..5a8cd9d87 100755
--- a/bin/elixir
+++ b/bin/elixir
@@ -114,7 +114,7 @@ while [ $I -le $LENGTH ]; do
C=1
MODE="elixirc"
;;
- -v|--no-halt|--no-pry)
+ -v|--no-halt|--dbg)
C=1
;;
-e|-r|-pr|-pa|-pz|--app|--eval|--remsh|--dot-iex)
diff --git a/bin/elixir.bat b/bin/elixir.bat
index 9099df89d..2cbbb5485 100644
--- a/bin/elixir.bat
+++ b/bin/elixir.bat
@@ -143,7 +143,7 @@ if ""==!par:--app=! (set "parsElixir=!parsElixir! --app %~1" && shift && g
if ""==!par:--no-halt=! (set "parsElixir=!parsElixir! --no-halt" && goto startloop)
if ""==!par:--remsh=! (set "parsElixir=!parsElixir! --remsh %~1" && shift && goto startloop)
if ""==!par:--dot-iex=! (set "parsElixir=!parsElixir! --dot-iex %~1" && shift && goto startloop)
-if ""==!par:--no-pry=! (set "parsElixir=!parsElixir! --no-pry" && goto startloop)
+if ""==!par:--dbg=! (set "parsElixir=!parsElixir! --dbg %~1" && shift && goto startloop)
rem ******* ERLANG PARAMETERS **********************
if ""==!par:--boot=! (set "parsErlang=!parsErlang! -boot %~1" && shift && goto startloop)
if ""==!par:--boot-var=! (set "parsErlang=!parsErlang! -boot_var %~1 %~2" && shift && shift && goto startloop)
diff --git a/bin/iex b/bin/iex
index 9b734e212..b84e1b3dd 100755
--- a/bin/iex
+++ b/bin/iex
@@ -7,11 +7,11 @@ Usage: $(basename "$0") [options] [.exs file] [data]
The following options are exclusive to IEx:
+ --dbg pry Sets the backend for Kernel.dbg/2 to IEx.pry/0
--dot-iex "FILE" Evaluates FILE, line by line, to set up IEx' environment.
Defaults to evaluating .iex.exs or ~/.iex.exs, if any exists.
If FILE is empty, then no file will be loaded.
--remsh NAME Connects to a node using a remote shell.
- --no-pry Doesn't start pry sessions when dbg/2 is called.
It accepts all other options listed by "elixir --help".
USAGE
diff --git a/bin/iex.bat b/bin/iex.bat
index e8a1c1061..93a5fdfa8 100644
--- a/bin/iex.bat
+++ b/bin/iex.bat
@@ -11,12 +11,12 @@ echo Usage: %~nx0 [options] [.exs file] [data]
echo.
echo The following options are exclusive to IEx:
echo.
+echo --dbg pry Sets the backend for Kernel.dbg/2 to IEx.pry/0
echo --dot-iex "FILE" Evaluates FILE, line by line, to set up IEx' environment.
echo Defaults to evaluating .iex.exs or ~/.iex.exs, if any exists.
echo If FILE is empty, then no file will be loaded.
echo --remsh NAME Connects to a node using a remote shell
echo --werl Uses Erlang's Windows shell GUI (Windows only)
-echo --no-pry Doesn't start pry sessions when dbg/2 is called.
echo.
echo Set the IEX_WITH_WERL environment variable to always use werl.
echo It accepts all other options listed by "elixir --help".