Hi,
for the running app on the iPhone, I don’t see system.debuglog doing anything.
watching all the debug logs from device in console.app I don’t see my entries. And yes, it’s the right log as I see the reports about my app being installed and crashing.
Doing my own NSLog declare doesn’t work either as it crashes too.
[code]Protected Shared Sub NSLog(s as text)
// log some object
#if TargetMacOS or TargetIOS then
declare sub NSLog lib FoundationLib (format as CFStringRef, label as CFStringRef)
#if TargetIOS then
dim f as text = "XXXXXX %@" + endofline
#else
dim f as text = "XXXXXX %@" + EndOfLine.OSX.ToText
#endif
NSLog f, s
#else
// not supported
#endif
End Sub[/code]
this is some code I wonder if declaring to NSLog with variable parameters requires something special.
What?
I tried more things and I think there may be a big issue with Xojo passing parameters for declares when using variable argument functions.
Xojo doesn’t support calling variadic functions.
so I made a feedback request:
<https://xojo.com/issue/47512>