Autor Tema: debugging techniques using the say() function, pipes and libreoffice writer  (Leído 2198 veces)

0 Usuarios y 1 Visitante están viendo este tema.

Desconectado handsource-dyko

  • Hero Member
  • *****
  • Mensajes: 568
  • Karma: 32
  • Sexo: Masculino
  • I'm the eye in the sky.
    • Ver Perfil
    • dyko designs
Here's a handy debugging technique for those cases where you need to analyse a lot of data.

Currently I'm working on malvado's attract(demo) mode, wich still has some weird glitches with platforms and multiple player processes.
To help diagnose the problem I pipe the output of the say() function wich is normally printed in the dos promt, to a textfile.

I then copy the contents into open/libre office writer and reformat the text with colors, to mark lines with suspicious debug otput. One of the handy features is that you can insert virtual post-it notes to add remarks. I find this a very usefull technique when crunching through a lot of data or when I need to analyse a sequence of processes.

So I attached a zip file with some examples of this process. Maybe this technique can help you out if you're really stuck with something. (provided  you put a lot of debug text in your program).

I also included some screendumps with some of the glitches, can you spot them? Also look for bgdi memory usage in the task manager, I still have to track that memory leak....

« última modificación: Agosto 21, 2012, 05:38:04 am por handsource-dyko »

Conectado FreeYourMind

  • Hero Member
  • *****
  • Mensajes: 5557
  • Karma: 125
  • Sexo: Masculino
    • Ver Perfil
    • GECA soft
Re:debugging techniques using the say() function, pipes and libreoffice writer
« Respuesta #1 en: Agosto 21, 2012, 08:59:16 am »
Thanks , karma up