-
Notifications
You must be signed in to change notification settings - Fork 514
Debugging Hints
Rolf Bjarne Kvinge edited this page Jan 31, 2023
·
1 revision
Sometimes you get better diagnostic output when executing the native executable directly from the command line (for macOS and Mac Catalyst).
The native executable is located inside the Contents/MacOS directory inside the app bundle, so if the current directory is the project directory, the full app to the executable would be something like:
# A debug build is by default in a subdirectory with the current RuntimeIdentifier:
$ ./bin/Debug/net7.0-macos/osx-x64/MyApp.app/Contents/MacOS/MyApp
# A release build is by default universal:
$ ./bin/Release/net7.0-macos/MyApp.app/Contents/MacOS/MyApp
Set the OS_ACTIVITY_DT_MODE environment variable to YES
to get any output written to the system log (typically os_log
or NSLog
from native code) written to standard error. This is very useful when launching from the command line as explained above:
export OS_ACTIVITY_DT_MODE=Yes
$ ./bin/Debug/net7.0-macos/osx-x64/MyApp.app/Contents/MacOS/MyApp
[...]
- README
- xcode13.0 Binding Status
- xcode13.1 Binding Status
- xcode13.2 Binding Status
- xcode13.3 Binding Status
- xcode13.4 Binding Status
- xcode14.0 Binding Status
- xcode14.1 Binding Status
- xcode14.2 Binding Status
- xcode14.3 Binding Status
- xcode15.0 Binding Status
- xcode15.1 Binding Status
- xcode15.3 Binding Status
- xcode15.4 Binding Status
- xcode16.0 Binding Status
- xcode16.1 Binding Status
- xcode16.2 Binding Status