Debug root script

When launching root scripts as

root -l script.cc

is it possible to see on which line it crashed?

Currently the information I see is

#5 0x00007fa293437485 in ?? ()
#6 0x00007fff52ceddf0 in ?? ()
#7 0x00007fff52cedd90 in ?? ()


ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


Try:

root -l script.cc++g
1 Like

Then errors such as

error: unknown type name ‘TH1F’

appear.

So, it’s obvious that you are missing:

#include "TH1.h"

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.