SV: Problems with debugger

Salvador Alcaraz Carrasco <>
Fri Mar 8 14:46:23 CET 2002




ok, problem solved

Thank you very much

Salva







On Fri, 8 Mar 2002, Klas Johansson wrote:

> Hi!
>
> Perhaps this thread will help you:
> http://www.erlang.org/ml-archive/erlang-questions/200202/msg00121.html
>
> /Klas
>
> Salvador Alcaraz Carrasco wrote:
> >
> > Sorry, I have forgotten the parameter, but its the same, as you can see:
> >
> > The module and function:
> >
> > -module(prueba).
> > -export ([s/1]).
> > s(A)->
> >     erlang:display(A),
> >     s(A+1).
> >
> > and the compilation and running:
> >
> > bash-2.05a$ erl
> > Erlang (BEAM) emulator version 5.1 [source]
> >
> > Eshell V5.1  (abort with ^G)
> > 1> c(prueba).
> > {ok,prueba}
> > 2> debugger:q(prueba,s,[1]).
> >
> > =ERROR REPORT==== 7-Mar-2002::17:51:12 ===
> > Error in process <0.36.0> with exit value:
> > {badarg,[{erlang,binary_to_term,[<<0 bytes>>]},{dbg_i
> > load,abstr,1},{dbg_iload,store_module,3},{dbg_iload,load_mod1,3}]}
> > ** exited: {badarg,[{ets,match_object,[not_found,{{prueba,s,1,'_'},'_'}]},
> >                     {dbg_ets,match_object,2},
> >                     {dbg_imeta,function,4},
> >                     {dbg_ieval,eval_function,10},
> >                     {dbg_ieval,eval_function,4},
> >                     {dbg_imeta,eval_mfa,5},
> >                     {dbg_imeta,int,4}]} **
> > 3>
> > =ERROR REPORT==== 7-Mar-2002::17:51:16 ===
> > Error in process <0.39.0> with exit value:
> > {badarith,[{dbg_ui_trace_win,configure,3},{dbg_ui_aux
> > ,gs_cmd,2},{dbg_ui_trace,loop,1}]}
> >
> > after that, Erlang open debugger window, but without data and file
> >
> > ¿where is the problem?
> >
> > thank you in advance
> >
> > /Salva
> >
> > __________________________________________________________________________
> > Salvador Alcaraz Carrasco                      http://www.umh.es
> > Arquitectura y Tecnologia de Computadores      http://obelix.umh.es
> > Dpto. Fisica y Arquitectura de Computadores    
> > Universidad Miguel Hernandez                   
> > Avda. del ferrocarril, s/n                     Telf. +34 96 665 8495
> > Elche, Alicante (Spain)
> > __________________________________________________________________________
> >
> > On Thu, 7 Mar 2002, Jonas Åman wrote:
> >
> > > Hi!
> > >
> > > I'd guess that it's because your function s
> > > in the prueba-module needs an argument, but
> > > you try to start the debugger specifying no
> > > arguments, i.e it should be
> > >
> > > debugger:q(prueba,s,[argument]) instead of
> > > debugger:q(prueba,s,[]).
> > >
> > > I hope it solves the problem.
> > >
> > > /Jonas
> > >
> > > -----Ursprungligt meddelande-----
> > > Från: 
> > > [mailto:]För Salvador Alcaraz Carrasco
> > > Skickat: den 7 mars 2002 17:05
> > > Till: 
> > > Ämne: Problems with debugger
> > >
> > >
> > >
> > > Hy friends, I have problem.
> > >
> > > In older versions of Erlang, I used a debugger module and the q function,
> > >
> > > debugger:q(module,function,parameters)
> > >
> > > For example:
> > >
> > > the module and the start function
> > >
> > > example.erl
> > > s()
> > >
> > >
> > > I could debug it using:
> > >
> > > debugger:q(example, s,[])
> > >
> > >
> > >
> > >
> > >
> > > NOW, With last version, I have problem. You can  see the error.
> > >
> > > I am going to do step-by-step:
> > >
> > > The code of prueba.erl is:
> > >
> > > -module(prueba).
> > > -export ([s/1]).
> > > s(A)->
> > >     erlang:display(A),
> > >     s(A+1).
> > >
> > >
> > >
> > >
> > > 1. START ERLANG + COMPILE + DEBUGGER
> > >
> > > bash-2.05a$ erl
> > > Erlang (BEAM) emulator version 5.1 [source]
> > >
> > > Eshell V5.1  (abort with ^G)
> > > 1> c(prueba).
> > > {ok,prueba}
> > > 2> debugger:q(prueba,s,[]).
> > >
> > > =ERROR REPORT==== 7-Mar-2002::17:00:55 ===
> > > Error in process <0.36.0> with exit value:
> > > {badarg,[{erlang,binary_to_term,[<<0
> > > bytes>>]},{dbg_iload,abstr,1},{dbg_iload,store_module,3},{dbg_iload,load_mod
> > > 1,3}
> > > ]}
> > > ** exited: {undef,[{prueba,s,[]},
> > >                    {erl_eval,expr,3},
> > >                    {erl_eval,exprs,4},
> > >                    {shell,eval_loop,2}]} **
> > > 3>
> > >
> > >
> > >
> > >
> > >
> > > ¿Can you help me?
> > >
> > > ¿Where is the error?
> > >
> > > Thank you in advance
> > >
> > > Salva
> > >
> > >
> > > __________________________________________________________________________
> > > Salvador Alcaraz Carrasco                      http://www.umh.es
> > > Arquitectura y Tecnologia de Computadores      http://obelix.umh.es
> > > Dpto. Fisica y Arquitectura de Computadores    
> > > Universidad Miguel Hernandez                   
> > > Avda. del ferrocarril, s/n                     Telf. +34 96 665 8495
> > > Elche, Alicante (Spain)
> > > __________________________________________________________________________
> > >
>




More information about the erlang-questions mailing list