소스 검색

Allow the use of GDB/LLDB for debugging

If the environment variable USE_GDB exists this plugin will pause
before the EUNIT tests so that you can attach a debugger to the VM.
pull/65/head
Paul J. Davis 11 년 전
부모
커밋
c5c794eaf4
2개의 변경된 파일18개의 추가작업 그리고 0개의 파일을 삭제
  1. +13
    -0
      plugins/rebar_gdb_plugin.erl
  2. +5
    -0
      rebar.config

+ 13
- 0
plugins/rebar_gdb_plugin.erl 파일 보기

@ -0,0 +1,13 @@
-module(rebar_gdb_plugin).
-compile(export_all).
pre_eunit(_Config, _AppFile) ->
case os:getenv("USE_GDB") of
false ->
ok;
_ ->
Prompt = io_lib:format("GDB Attach to: ~s~n", [os:getpid()]),
io:get_line(Prompt)
end,
ok.

+ 5
- 0
rebar.config 파일 보기

@ -32,3 +32,8 @@
eunit_surefire, [{dir,"."}]
}}
]}.
{plugins, [
rebar_gdb_plugin
]}.

불러오는 중...
취소
저장