Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Debug a Variable

Author
Message
Behdadsoft
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 30th Jul 2016 12:40
Hi.

in my Game one Variable (Player.win) is equal to 0 and some where it equal to 1. now I want find a line that this variable equal to 1.
for do this I define it to Debug section but I don't know how can find where equal is 1.



Please Guide me to fix this Problem.

Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 30th Jul 2016 15:14
use a function playerwin where u set Player.win=1 or 0,
there u can set a breakpoint or a debug log output.
Log( szMessage )
you can find all occurrence if you remark this property in your type, the compiler will then say not found everywhere.
or just search in your project ".win"
AGK (Steam) V2.0.20 : Windows 10 Pro 64 Bit : AMD (16.3.2) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)

Login to post a reply

Server time is: 2024-11-25 03:27:30
Your offset time is: 2024-11-25 03:27:30