Question

Je déteste la lecture des journaux d'erreur.Chaque fois que quelque chose ne va pas mal au cours du développement et je retourne à la résolution des erreurs pour voir ce qui est mal tourné, je suis déprimé.Ce que je veux vraiment, c'est un moyen d'avoir des erreurs spécifiques invoquez des effets sonores sur ma machine locale.Par exemple, chaque erreur de pointeur NULL doit faire le jeu de clip trombone tristes, un tableau hors limites pourrait être un sifflet de diapositive en chute, etc.

Y a-t-il un moyen de la configurer pour ma fenêtre de console Windows?

Modifier

Les environnements sont hax ciblant Swf 10, Rails 3 sur Webrick et une application autonome Java.Tous fonctionnent dans une fenêtre de console Windows 7 standard.

Était-ce utile?

La solution

I don't use windows much nowadays. With that said, here's how I'd do it:

  1. Download and install cygwin, just to get bash and basic unix utilities, specifically, tail and grep. Those three should be enough to do the job, plus a $sound_player. You might be able to bypass cygwin and install bash, tail and grep independently.

  2. Open one bash shell for each kind of error that you want to make noise of.

  3. $ while tail -f $LOGFILE|grep $ERROR_MESSAGE; do $sound_player $SOUND_FILE; done

There should be a way to do the equivalent of the above using the windows shell (cmd).

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top