Takes an input [[#IStorage]] and a s32, no output.
Takes an input [[#IStorage]] and a s32, no output.
+
+
The cached value loaded from [[Settings_services#GetDebugModeFlag]] must be 1, otherwise an error is returned.
+
+
The s32 must the value already stored in state when the state value is non-zero, otherwise an error is returned. When the state value is 0, the s32 is written into state. Then input storage is pushed to the StorageChannel.
=== TryPopFromAppletBoundChannelForDebug ===
=== TryPopFromAppletBoundChannelForDebug ===
Takes an input s32, returns an output [[#IStorage]].
Takes an input s32, returns an output [[#IStorage]].
+
+
The cached value loaded from [[Settings_services#GetDebugModeFlag]] must be 1, otherwise an error is returned.
+
+
The s32 must not be 0 and must match the value previously saved by [[#PushToAppletBoundChannelForDebug]], otherwise errors are returned. Then the output storage is popped from the StorageChannel.