In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Changes

Jump to navigation Jump to search
570 bytes added ,  19:29, 3 July 2009
alternative debug method without using assembly
Line 121: Line 121:  
This shows machine address 0x318 has the proper machine code and the nearest .loc statement says the problem is at line 168 of the ShooterView.cpp.
 
This shows machine address 0x318 has the proper machine code and the nearest .loc statement says the problem is at line 168 of the ShooterView.cpp.
 
For more info on the assembler output see the manual here:  http://sourceware.org/binutils/docs-2.18/as/index.html
 
For more info on the assembler output see the manual here:  http://sourceware.org/binutils/docs-2.18/as/index.html
 +
 +
===Alternative Method 3===
 +
 +
If you are getting crashes and you dont want to hunt through assembly code, or rendered-c you can put exit(0) in parts of your code you think it might crash in - like before function calls, or variable assignments.
 +
 +
If you compile different versions with the exit(0) in different places then when you run a version of your program that crashes instead of returning to the HBC then you know you are close to the source of the problem.
 +
 +
It is a dirty way of finding your problem, but a lot easier to understand than the other methods shown.
 
[[Category:Development]]
 
[[Category:Development]]
79

edits

Navigation menu