ccgus / CocoaScript

JavaScript + the Cocoa frameworks, and then ObjC brackets show up to party as well.
Other
618 stars 58 forks source link

Debug callback #17

Closed samdeane closed 10 years ago

samdeane commented 10 years ago

Adds a [COScript setDebugController] method, which lets you pass in an object that gets to deal with internal debug() calls.

If you don't do anything, this debug output ends up going to NSLog as before.

If you give it a debug controller object, its output:args: method will get called for each debug message. This lets you route the log output differently.

ccgus commented 10 years ago

Danke!