[Fwd: [ROOT] CINT - Debug mode]

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Mon Jul 23 2001 - 15:30:15 MEST


Forgot to forward reply to roottalk.

-- Fons


-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910

attached mail follows:


Thanks ! -----Original Message----- From: Fons Rademakers [mailto:Fons.Rademakers@cern.ch] Sent: Monday, July 23, 2001 2:40 PM To: Meir Ron Subject: Re: [ROOT] CINT - Debug mode Hi Ron, what about doing: Interpreter->Exec(".debug") this should turn on debugging. then you can do: Interpreter->Exec(".L file.C") Interpreter->Exec(".b method") etc. Cheers, Fons. Meir Ron wrote: > > Hi Fox > > I have some difficulties with the debug mode. > > I'm using the CINT as an interpreter in my program: > I handle it with a special class that send commands to the CINT. > example: > Interpreter::Interpreter() > { > int ret; > ret = G__init_cint((char*)"cint"); // if(ret!=0) > } > Interpreter::~Interpreter() > { > G__scratch_all(); > } > long Interpreter::Exec(string text) > { > return G__int(G__exec_text((char*)(text.c_str()))); > } > long Interpreter::Calc(string funcname) > { > return G__int(G__calc((char*)(funcname.c_str()))); > } > void Interpreter::LoadFile(string filename) > { > try{ > int ret; > ret = G__loadfile((char*)(filename.c_str())); > }catch(...){ > cerr << "BUG: Interpreter::LoadFile"<<endl; > } > } > > My propose is to switch the CINT to debug mode, set break points etz. > WITHOUT adding command to the script file which loaded. (adding > G__pause()... to the file is not good for me) > I tried to use G__process_cmd command but I didn't succeed! > > I'll be thankful for any help! > > Meir Ron > Tel: +(972)-3-9269007 > Home: +(972)-3-9220847 > Email: meirr@tti-telecom.com <mailto:meirr@tti-telecom.com> -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7677910



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:52 MET