Jump to content
Sign in to follow this  
iSkilz

Need help with simple debugging code

Recommended Posts

iSkilz

I'm trying to make a simple debugger, where you input a variable and it gives the value. but i am new, and am having difficulty.. here's the code:

$test = 13

;~ Func Hotkey_F1()
    $Debug = InputBox("Debugger","Input var name","$test","",200, 135 )
    Msgbox(0,"Debugger",$Debug )
;~ EndFunc

any suggestion for a better debugger method is also welcome :)

Share this post


Link to post
Share on other sites
abberration

$test = 13

;~ Func Hotkey_F1()
    $Debug = InputBox("Debugger","Input var name","test","",200, 135 ) ; must leave off the $ for the Eval statement to work
    $value = Eval($Debug)
    Msgbox(0,"Debugger", $value)
;~ EndFunc

RAID Calculator | Software Installer

The truth has been suppressed since the dawn of time.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×