Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any library in C like python's inspect?

Tags:

python

c

Is there any library in C like python's inspect?

def myfunction():
   import inspect
   inspect.stack(): # this give you complete stack up to this function call

It's very useful to debug python program.

Actually I want to debug GTK Combobox widget, to understand complete flow I need complete function call stack.

So is there any similar library of Technic in C language like python inspect package?

like image 626
Ravi Gadhia Avatar asked Aug 05 '11 09:08

Ravi Gadhia


1 Answers

No such portable library exists. There's a solution specific to GNU libc.

like image 76
n. 1.8e9-where's-my-share m. Avatar answered Oct 18 '22 03:10

n. 1.8e9-where's-my-share m.