G
Guest
Is there a way in the perl debugger to set a breakpoint on a builtin
function?
I currently have a script that is deleting a file, and I want to know why
it has decided to delete the file. I'd like to set a breakpoint on the
'unlink' function, so I can catch the caller, and do the whole debugging
thing. However, when I try this, I get:
DB<1> b unlink
Subroutine main::unlink not found.
Do the builtin functions reside in a special namespace that will allow me
to, e.g., 'b special::unlink', or some such? Or is there some other,
special notation that I can use?
Thanks,
Keith
function?
I currently have a script that is deleting a file, and I want to know why
it has decided to delete the file. I'd like to set a breakpoint on the
'unlink' function, so I can catch the caller, and do the whole debugging
thing. However, when I try this, I get:
DB<1> b unlink
Subroutine main::unlink not found.
Do the builtin functions reside in a special namespace that will allow me
to, e.g., 'b special::unlink', or some such? Or is there some other,
special notation that I can use?
Thanks,
Keith