0

I'm writing a debug script for GDB using python and faced some weird behavior. I made a mistake somewhere in the script and everything that got printed when calling this command from GDB was:

(gdb) some-command
Python Exception <class 'TypeError'> object() takes no parameters:
Error occurred in Python command: object() takes no parameters

The information is kind of useless without line numbers, is it possible to make it print a full backtrace?

Some Name
  • 8,555
  • 5
  • 27
  • 77
  • 2
    Like [`set python print-stack full`](https://sourceware.org/gdb/onlinedocs/gdb/Python-Commands.html#index-set-python-print_002dstack)? – ssbssa Oct 18 '22 at 10:43

0 Answers0