|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: Jun 2005
Città: Napoli
Messaggi: 2599
|
[Python] gdb no debugging symbols found
Salve, volevo usare gdb per il debug di programmi python su linux....Ho trovato questo link che spiega come fare, ho creato nella home il file .gdbinit (che non era presente nel pc!!), e ci ho aggiunto la riga br _PyImport_LoadDynamicModule.
Poi ho lanciato gdb: Codice:
> gdb /usr/bin/python GNU gdb 6.7.1 Copyright (C) 2007 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i586-suse-linux"... No symbol table is loaded. Use the "file" command. (no debugging symbols found) Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run prog.py Starting program: /usr/bin/python prog.py (no debugging symbols found) grazie ps ho trovato una discussione uguale sul forum, questa, ma non ci ho capito molto!
__________________
Hp pavilion dv6-1250el [cpu: P8700 - ati radeon hd 4650 1 gb - 4 gb ram - hd 320 7200 rpm!] Garmin Official Thread |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Dec 2005
Città: Istanbul
Messaggi: 1817
|
Non devi usare gdb, ma i tool propri di python.
Prova a vedere se ti trovi con questo: http://www.ferg.org/papers/debugging_in_python.html
__________________
One of the conclusions that we reached was that the "object" need not be a primitive notion in a programming language; one can build objects and their behaviour from little more than assignable value cells and good old lambda expressions. —Guy Steele |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 10:24.