Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Ankit_P_Intel
Employee
153 Views

debugging information for file /usr/bin/python2.7

Hi Intel 

I am Running a simple enough python code ; while doing Vtune hotspot analysis I found many functions could not get linked to source code. while some were.

while looking at the collection log I found warning that "Cannot locate debugging information for file /usr/bin/python2.7" .

Since my most work revolves around Python 2.7 and 3.x ; getting debug symbols will be very helpful in optimizing my apps.

can you help me how /where can I get debug symbols for Python 2.7 and 3.x.?  

I am running it on Ubuntu 16.04 server with Linux fmxxx 4.10.0-42-generic #46~16.04.1-Ubuntu SMP Mon Dec 4 15:57:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

thanks

Ankit

0 Kudos
2 Replies
Anonymous102
Employee
153 Views

I am also facing the same issue. Please can you help.

David_Billinghurst
New Contributor II
153 Views

Does the python2.7-dbg package provide this? See https://wiki.python.org/moin/DebuggingWithGdb

As a last resort, you could rebuild python from source and generate the debug files yourself.  Hours of fun (and no, I haven't done this for Python).

Reply