Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl Debugger

Status
Not open for further replies.

campbellc

IS-IT--Management
Jul 3, 2007
26
US
Can anyone tell me why a program would execute one way within the Debugger but would act totally different when directly executed from a command line.

Makes it very hard to debug a program if both executions don't act the same.

Thanks...
Chris
 
What debugger and what code?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those Who Say It Cannot Be Done Are Usually Interrupted by Someone Else Doing It; Give the wrong symptoms, get the wrong solutions;
 
do you mean perls debugger -d, or something else? I hardly ever use the -d switch myself as I don't write many scripts that I need to really debug very much or do any of the many things the debugger can do.

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
I am using the perl debugger -d option. I have ActivePerl 5.8.8 loaded.

When executing the debugger a file is being deleted as indicated in the code. When not executed through the debugger the file is not deleted. The code was not altered during the debugger execution.

Does the debugger interpret code differently?
 
Well, evidently something different is going on. Maybe someone else can shed some light on what is happening. Posting your code might help too.

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top