Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

pausing in a debugger can get rid of error messages

by efoss (Acolyte)
on Apr 06, 2009 at 21:11 UTC ( [id://755862]=perlquestion: print w/replies, xml ) Need Help??

efoss has asked for the wisdom of the Perl Monks concerning the following question:

The following is a specific example of a general situation I've run into many times: I am generating an output file and each line has a key associated with it, say the first non-space part of the input file. I mean to have filled a hash with all the possible keys and values associated with all of them, but I've made some mistakes and forgotten to associate values with some of the keys. I run the script, either on a debugger or a terminal, and I get a bunch of "uninitialized" error messages. I then put in a block in my debugger right before the place where I'm running into trouble asking the script to print a value associated with a non-existant key. I hit "run" a few times and let it hang up at the block each time it has looped through a new line. I see no error messages. I then remove the block and let the script run to the end, and I still see no error messages. If I then look in the output file, the places where I tried to print values associated with non-existant keys are blank, as they should be, but I now have run the whole script without getting any error messages. I've done this many times using both Komodo or Affrus debuggers (Mac OSX). Does anyone know why this happens? Thanks. Eric
  • Comment on pausing in a debugger can get rid of error messages

Replies are listed 'Best First'.
Re: pausing in a debugger can get rid of error messages
by sweetblood (Prior) on Apr 06, 2009 at 22:02 UTC
    Do you have code that demonstrates this?

    Sweetblood

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://755862]
Approved by ikegami
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2024-04-19 16:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found