Страница:
Debugging Hints
Страницы
.NET 6
.NET 7 release notes
.NET 8 release notes
.NET 9 release notes
.NET daily
.NET release notes Xcode 13.3
.NET release notes Xcode 14.0
.NET release notes
.NET
BINDINGS
Breaking changes in .NET
Build & Run
Continuous Integration
Debugging Hints
Debugging Https bugs using Charles
Debugging on watchOS device
Diagnosis
FabricBot
Globalization
Home
How to Contribute
Incompatibilities between CoreCLR and Mono
Known issues in .NET
Known issues in .NET7
Known issues in .NET8
Known issues in .NET9
Labels and when to use them
Mac Catalyst (Early Preview)
Nullability
Obsolete
Profiling App Launch
Profiling
Project file properties dotnet migration
Project file properties
Submitting Bugs & Suggestions
Xcode Summer Expectations
d16 0 notes
release notes template
xcode102 notes
1
Debugging Hints
Rolf Bjarne Kvinge редактировал(а) эту страницу 2023-01-31 14:15:47 +01:00
Running desktop apps from the command line
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 OS_ACTIVITY_DT_MODE to get output to the system log
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
[...]
Contributing
Bindings
- 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