How do you find bugs?
by Nikhil Haldar-Sinha · in Torque Game Engine · 05/26/2006 (7:27 pm) · 4 replies
I'm having issues finding bugs in my code that normally would be caught by the compiler, like a missing space here, variable name incorrect, etc. How do you normally find these?
Thanks.
-Nick
Thanks.
-Nick
#2
05/26/2006 (9:34 pm)
I don't suppose there's a way to catch compile bugs as I would with a C++ compiler?
#3
05/26/2006 (10:11 pm)
Actually yes, the errors are reported in the console and it even gives you the file and line number, just like a C++ compiler would. If you want break points and other such fancy debugging tools, try using Torsion or Codeweaver (search on GG for them) for your Torquescripting needs.
#4
05/27/2006 (12:03 pm)
Torsion has a precompile feature which might be what you seek.
Torque Owner Juan Aramburu
2. You can check the console log after the process has exited by checking the file console.log (in the same directory as the executable)....but it's not going to be color-coded.
For synxtax/compilation errors, search for the word 'syntax' in the log. I usually search for the following phrases: 'synxtax', 'error', 'unable', 'could not'.