Monkey debugging techniques

Community Forums/Monkey Talk/Monkey debugging techniques

D4NM4N(Posted 2011) [#1]
Finally got hold of a VM of windows to test this with (humph.. :/)

Anyway..

I was not expecting monkey to have a debugger due to the translated & separated runtime but what is the best way to stop and read? (eg in-code stoppoint/messagebox/alerty type things)

Last edited 2011


Warpy(Posted 2011) [#2]
If you're working in html5, use google chrome's javascript debugger. It's very good.


D4NM4N(Posted 2011) [#3]
true that is one way. Although i was thinking something similar to debuglog() or alert()


MikeHart(Posted 2011) [#4]
It is called

Print


GW(Posted 2011) [#5]
RuntimeError() is what's desperately needed!


BlitzSupport(Posted 2011) [#6]
Print is handy, but there's also Error (like BlitzMax RuntimeError), which will stop the program in its tracks with a lovely dialog box.

Also been meaning to port/implement this sort of thing, which should work rather well.


D4NM4N(Posted 2011) [#7]
Yes that would be good, especially if you could continue execution.
@mike print is not really what I want.


Nigel Brown(Posted 2011) [#8]
tried Error and it does not show as a known command?