0

I'm new Bie in Python. I wanna trace a python project "youtube download" which provides a bunch of functions to download youtube videos , however i only wanna know when i trigger one of the method in the project. like

"./youtube-dl <YOUTUBE_URL> -t" 

it will download the youtube stream and save the title. i just wanna know when i trigger the command what functions will be called , i don't want to "know/trace" other functions not related the command i triggered.

is there any debug mode option, or what kind of setting can let me do the job!

thanks you all in advance^^

newBike
  • 14,385
  • 29
  • 109
  • 192
  • Try `python -m trace -t $(which youtube-dl) ` – Blender Apr 05 '13 at 06:15
  • You can use introspection, as shown [here](http://stackoverflow.com/questions/2654113/python-how-to-get-the-callers-method-name-in-the-called-method). – adrianp Apr 05 '13 at 06:16

0 Answers0