Setting breakpoints causes Xcode to hang; fuse-example-ios-foreign-code-basics was compiled with optimization - stepping may behave oddly; variables may not be available.
- Fuse version 0.23.0 (build 7041).
- OS X El Capitan Version 10.11.6
Steps:
- Download foreign code example: https://github.com/yupferris/fuse-example-ios-foreign-code-basics
- Do a Fuse preview
- When XCode opens, edit _root.SystemSounds.mm and scroll all the way to the bottom
- Place a breakpoint on line 105 or 106 to break near “AudioServicesPlaySystemSound(1310);” (see Code below)
- Run the app from Xcode
- Click the “Press me!” button in the app.
XCode stops with:
- A spinner in the left-hand “View Variables” area. The spinner never stops.
- The following in the righ-hand console-output area: “fuse-example-ios-foreign-code-basics was compiled with optimization - stepping may behave oddly; variables may not be available.”
At this point Xcode is hung. Tried a few things, but always had to force-quit Xcode and restart. Tried monkeying with some setting (e.g. changing Build Configuration to “Debug”), but so far no succcess.
Code
// private static extern void PlayNotification() [static] :25
void SystemSounds::PlayNotification()
{
uStackFrame __("SystemSounds", "PlayNotification()");
@autoreleasepool
{ // <-- Break here
AudioServicesPlaySystemSound(1310); // <-- or here
}
}