Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging code does not work #180

Closed
drapostolos opened this issue May 8, 2014 · 2 comments
Closed

Debugging code does not work #180

drapostolos opened this issue May 8, 2014 · 2 comments

Comments

@drapostolos
Copy link

Debugging code doesn't work well for me.

I have two files as follow. and run eunit:test(m). in the console window.

-module(m).
-export([f1/0,f2/0,f3/0]).

f1() ->
    ok.
f2() ->
    ok.
f3() ->
    ok.
-module(m_tests).
-include_lib("eunit/include/eunit.hrl").
-export([]).

x1_test() ->
    m:f1(),  %% break point is added at this line
    m:f2(),
    m:f3(),
    ok .

Code execution stops at my break point,
image

But after about 5 seconds, it gets killed, without me doing anything. Am I doing anything wrong?
image

@vladdu
Copy link
Collaborator

vladdu commented May 9, 2014

This is a problem with eunit: richcarl/eunit#3

I suppose that a workaround is to run manually the test you want to debug, instead of the whole test suite.

@vladdu vladdu closed this as completed May 9, 2014
@drapostolos
Copy link
Author

ok, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants