diff options
author | José Valim <jose.valim@dashbit.co> | 2023-01-13 11:23:27 +0100 |
---|---|---|
committer | José Valim <jose.valim@dashbit.co> | 2023-01-13 11:23:27 +0100 |
commit | 7590e08106003ad95bf5001072c0cfc5cea3e271 (patch) | |
tree | 87e992901c80625d6a7e7e4804cb665f3bb5780c /bin | |
parent | 09d35db6c1a53e417d402ce88a128cdf20b1de01 (diff) | |
download | elixir-7590e08106003ad95bf5001072c0cfc5cea3e271.tar.gz |
Make pry opt-in on dbg with --dbg pry
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/elixir | 2 | ||||
-rw-r--r-- | bin/elixir.bat | 2 | ||||
-rwxr-xr-x | bin/iex | 2 | ||||
-rw-r--r-- | bin/iex.bat | 2 |
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) @@ -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". |