[gambit-list] iOS Embedding -- Don't see errors / exceptions

Zhen Shen zhenshen10 at outlook.com
Wed Apr 24 11:52:30 EDT 2013


You have to use NSLog on iOS.

I think recent versions of iOS disable stdout altogether.

From: aosivitz at gmail.com
Date: Tue, 23 Apr 2013 17:25:33 -0400
To: gambit-list at iro.umontreal.ca
Subject: [gambit-list] iOS Embedding -- Don't see errors / exceptions

Errors thrown from scheme code embedded in an iOS app don't get displayed anywhere. Instead, the the program just hangs.
I see the same behavior in the example GambitREPL app. If I add in an error (for example, calling (cons 1), wrong is the number of arguments) to the program.scm file, it will hang on launch, and the error message won't be displayed in stdout (which is ideally where I'd like it to go).
I'm using the following debug_settings:
   debug_settings =   (debug_settings    & ~___DEBUG_SETTINGS_UNCAUGHT_MASK)   | (___DEBUG_SETTINGS_UNCAUGHT_ALL      << ___DEBUG_SETTINGS_UNCAUGHT_SHIFT);      debug_settings =   (debug_settings    & ~___DEBUG_SETTINGS_ERROR_MASK)   | (___DEBUG_SETTINGS_ERROR_REPL      << ___DEBUG_SETTINGS_ERROR_SHIFT);
but I've also tried 
   debug_settings =   (debug_settings    & ~___DEBUG_SETTINGS_REPL_MASK)   | (___DEBUG_SETTINGS_REPL_STDIO      << ___DEBUG_SETTINGS_REPL_SHIFT);
and I've also tried wrapping my scheme calls in
___BEGIN_TRY___END_TRY
I apologize for all the questions regarding setting up an iOS/Scheme development environment, but I'll be sure to document everything once I get it all working to help other folks in the future.
Thanks,Axis
_______________________________________________
Gambit-list mailing list
Gambit-list at iro.umontreal.ca
https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20130424/2271a6e2/attachment.htm>


More information about the Gambit-list mailing list