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?