debug erlang application

Hi all!

 

I am trying to debug a project that I have on erlang.

The project already existed, so I imported it. We are usig rebar3 to build it. I can run rebar commands inside intellij with no problem.

But I can't do debug or launch it through intellij, it seems that I missing some configuration step.

I have selected the module and function and also the function arguments. The output is this:

 

/Users/miguel.silvestre/apps/erlang/17.4/bin/erl -pa /private/var/folders/p6/tj5j3dx90cl_rtrvl9h931940000gp/T/intellij_erlang_debugger_88 -pa /Users/miguel.silvestre/git/my-server/_build/default/rel/my -pa /Users/miguel.silvestre/git/my-server -run debugnode main 56331 -noshell -s init stop
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/teams.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/user_profile_cache.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/store_receipt.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/config.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/dal.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/leader.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/my_pb.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/tier_populations.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/port.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/users_sup.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/send_match_request.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/google.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/anger.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/sockserv.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/my_sup.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/omniata.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/stats.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/janitor.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/http_server.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/unhandled_messages.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/hacks.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/gifting.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/my_poolgirl_sup.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/user_cache.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/ab_tests.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/game_sup_tournament.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/start_game.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/products.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/minigames.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/purchase_serv.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/generate_friend_list.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/push_notif.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/probability_map.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/games_sup.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/my_matchmaker_callbacks.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/game_serv.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/rollbar.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/my_app.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/allin_game_serv.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/external_events.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/referee.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/game_sup_allin.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/swiss.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/leaderboards.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/users_serv.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/as3_policy_serv.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/conf_monitor.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/tournament_serv.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/my_generic_sup.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/node_boot.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/my_goliath.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/my_poolboy_sup.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/search_user.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/friend_list.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/broker_serv.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/facebook.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/game_sup_1on1.erl"
** Invalid beam file or no abstract code: "/Users/miguel.silvestre/git/my-server/apps/my/src/invitation_referrals.erl"

=ERROR REPORT==== 24-Mar-2016::12:08:13 ===
Error in process <0.36.0> with exit value: {undef,[{my_app,start,[ok,ok],[]}]}

 

Any clues? Could it be the -pa that is wrong?

Thank you.

1 comment

Had the same issue recently. Probably will be helpful to someone. The problem is, in my case, that IntelliJ was not really compiling erlang code. To fix that, go to Preferences -> Build, Execution, Deployment -> Erlang Compiler and check "Compile project with rebar".

0

Please sign in to leave a comment.