On Wed, Feb 04, 2004 at 07:21:07PM -0000, pijush wrote: > Hi! > I am debugging a perl script on Linux OS which has a call to > C-function from a .so file. I have tried to debug this script with > "Perl -d" option and also "gdb perl". But when it enters in the C > function from perl code then I failed to debug the code. It only > shows an address. Is there any method so that I can start debug from > perl script and debug the whole script, i.e., to debug "C" code > also? > Any help really appreciated.
If you want to see the debugging information you will need to build a debugging version of perl. Take a look in the INSTALL file and follow the instructions under "Building a debugging perl". You will also need to build the xs module with the debugging perl. You could rebuild just the module with debugging information, but it would probably be better to do the whole thing if you can. Then run the script with perl running in gdb, as before. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
