From ee7becd32a4853d81a0c8fe9a344aa50d1206bdf Mon Sep 17 00:00:00 2001 From: Kevin Burke Date: Tue, 20 May 2014 07:29:31 -0700 Subject: [PATCH] Updated Decompiling Tips IDA (markdown) --- Decompiling-Tips-IDA.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Decompiling-Tips-IDA.md b/Decompiling-Tips-IDA.md index 8cf7387..1d0a36a 100644 --- a/Decompiling-Tips-IDA.md +++ b/Decompiling-Tips-IDA.md @@ -183,6 +183,20 @@ This will eventually end up like the following once we have the offset properly ebx = RCT2_ADDRESS_SPRITE_LIST[ebx]; ``` +### Print debugging + +To print statements to the console after RCT2 begins running, include the following header: + +``` +#include "windows.h" +``` + +Then use the command [`OutputDebugString`](http://msdn.microsoft.com/en-us/library/aa363362%28VS.85%29.aspx). Sadly printf does not work in some cases. + +``` +OutputDebugString("Hello World!\n"); +``` + ### IDA Tips - Use the spacebar to shuffle between the graphical layout and the line-by-line instructions.