Menu
Sites
Language
Impossible to Debug Tizen Apps with Visual Studio for Mac

I have Tizen Studio installed. I can build and run a demo application onto my emulators. I can also set breakpoints in this demo and the Tizen Studion IDE correctly stops at the breakpoint.

I'm trying to port my Xamarin.Forms (v4.8.0.1821) game to Tizen. This game also uses Xamarin.Essentials, sqlite.net.pcl and Toasts.Forms.Plugin nugets.

So, I then installed latest Tizen extention (v1.5) into Visual Studo for Mac (see screenshot) and I pointed the package manager to the existing Tizen Studio install location. So that both Tizen Studio (which works) and Tizen for VS4M use the same SDK.

I created a new Tizen.NET project (v8.0.0.15631) and ported the game over. It compiles (YaY!!).

I can send a gist of my build info or you like?

It installs into the M6.0 emulator

But it won't run. So I want to find the error, that is stopping it from running.

So I tried to Run->Debug. It says Installing Application. Then Instalation Complete. But then Execution failed :(

So it is impossible to Debug from VS4M. How can I fix this problem?? Where should I look to see what is failing??

I want to release my game on all platforms (iOS, Android, MacOS, Windows and Tizen) in 1 week. What should I do?

Is there anything in the build logs above that I need to fix?

 

Thanks,

 

D.

 

Responses

13 Replies
Dominique Louis

To see a gist of my build, go to  gist . github . com / CartBlanche / 31cb7cbdec43eb38994e6b91c9046d5c [remove spaces]

vivek ellur

Hi

Could you please let us know for which Tizen version is the app being created? 

If you see the logs, the tpk is getting generated in bin/Debug/tizen50/org.ludopathicgames.KnightMoves-1.0.0.tpk. so it's generated for Tizen 5.0 version and as you are trying to run in Tizen 6.0 Emulator, it is not getting launched.

Based on which Tizen version you want to run the app, TargetFramework can be updated in csproj as follows,

For Tizen 5.0 - <TargetFramework>tizen50</TargetFramework>
For Tizen 5.5 - <TargetFramework>tizen60</TargetFramework>
For Tizen 6.0 - <TargetFramework>tizen80</TargetFramework>


There is also an issue with tizen-manifest.xml, the api-version is mentioned as 5.5. The api version is also dependent on the Tizen version as follows.

For Tizen 5.0 - api-version=5
For Tizen 5.5 - api-version=5.5
For Tizen 6.0 - api-version=6

Could you please update the csproj and tizen-manifest.xml as above and let us know if run/debug is working fine. Also If you can share the code, It would be helpful.

 

Thanks,

Vivek Ellur.

 

 

 

 

Dominique Louis

Hi Vivek,

I made sure that both the csproj and tizen-manifest.xml both use 6. so manifest says...

<manifest xmlns="http://tizen.org/ns/packages" 
          api-version="6" 
          package="org.ludopathicgames.KnightMoves" 
          version="1.0.0">

csproj says..

<TargetFramework>tizen80</TargetFramework>

And the emulator I have is 6.0-x86

But It says that is has installed the app on the emulator, but again says "Execution Failed" at the point when I'm trying to debug.

Should I export the logs and attach those?

 

 

Dominique Louis

Hi Vivek

My project SDK is  now also set to 1.1.6

<Project Sdk="Tizen.NET.Sdk/1.1.6">

I assume this is fine too?

Thanks,

 

Dominique.

 

vivek ellur

Hi Dominique Louis,

 

SDK version is fine. Could you check the version of Visual Studio for Mac. it should be 8.6 and above. 

We are able to debug the tizen 6.0 templates in 6.0 mobile emulator using Visual Studio for Mac 8.7.4 version.

Can you also try to create basic tizen template such as Elmsharp template and check if you are able to debug the app.

 

Regards,

Vivek

Dominique Louis

Hi Vivek,

  I have managed to recreate the same error in a test project using the Template. How can I send you the zip file? There doesn't seem to be a way for me to attached a zip file? 

Thanks

 

Dominique.

Dominique Louis

Hi Vivek,

  I have managed to recreate the same error in a test project using the Template. How can I send you the zip file? There doesn't seem to be a way for me to attached a zip file? 

Thanks

 

Dominique.

 

 

 

Dominique Louis

This is my full Mac environment...

=== Visual Studio Community 2019 for Mac ===
 
Version 8.8.5 (build 18)
Installation UUID: 60c7c193-36a0-40cb-a1f6-65589da22877
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)
 
Package version: 612000113
 
=== Mono Framework MDK ===
 
Runtime:
Mono 6.12.0.113 (2020-02/4fdfb5b1fd5) (64-bit)
Package version: 612000113
 
=== Roslyn (Language Service) ===
 
3.8.0-5.20519.18+4c195c3ac1974edcefa76774d7a59a2350ec55fa
 
=== NuGet ===
 
Version: 5.8.0.6860
 
=== .NET Core SDK ===
 
SDK: /usr/local/share/dotnet/sdk/5.0.102/Sdks
SDK Versions:
5.0.102
5.0.101
5.0.100
3.1.405
3.1.404
3.1.403
3.1.302
3.1.301
3.1.200
2.1.302
2.1.301
2.1.4
2.0.3
2.0.0
MSBuild SDKs: /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Sdks
 
=== .NET Core Runtime ===
 
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
5.0.2
5.0.1
5.0.0
3.1.11
3.1.10
3.1.9
3.1.6
3.1.5
3.1.2
2.1.23
2.1.20
2.1.19
2.1.17
2.1.2
2.1.1
2.0.5
2.0.3
2.0.0
 
=== .NET Core 3.1 SDK ===
 
SDK: 3.1.405
 
=== Xamarin.Profiler ===
 
'/Applications/Xamarin Profiler.app' not found
 
=== Updater ===
 
Version: 11
 
=== Apple Developer Tools ===
 
Xcode 12.3 (17715)
Build 12C33
 
=== Xamarin.Mac ===
 
Version: 7.2.0.3 (Visual Studio Community)
Hash: c51fabee8
Branch: xcode12.3
Build date: 2020-12-10 21:05:04-0500
 
=== Xamarin.iOS ===
 
Version: 14.8.0.3 (Visual Studio Community)
Hash: c51fabee8
Branch: xcode12.3
Build date: 2020-12-10 21:05:05-0500
 
=== Xamarin Designer ===
 
Version: 16.8.0.510
Hash: 44e3f3ce9
Branch: remotes/origin/d16-8
Build date: 2020-12-10 00:06:14 UTC
 
=== Xamarin.Android ===
 
Version: 11.1.0.26 (Visual Studio Community)
Commit: xamarin-android/d16-8/a36ce73
Android SDK: /Users/dominique/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
5.0 (API level 21)
8.0 (API level 26)
8.1 (API level 27)
 
SDK Tools Version: 26.1.1
SDK Platform Tools Version: 30.0.5
SDK Build Tools Version: 29.0.2
 
Build Information: 
Mono: 5e9cb6d
Java.Interop: xamarin/java.interop/d16-8@79d9533
ProGuard: Guardsquare/proguard/proguard6.2.2@ebe9000
SQLite: xamarin/sqlite/3.32.1@1a3276b
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-8@2fb1cbc
 
=== Microsoft OpenJDK for Mobile ===
 
Java SDK: /Users/dominique/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25
1.8.0-25
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
 
=== Android SDK Manager ===
 
Version: 16.8.0.32
Hash: 01a7774
Branch: remotes/origin/d16-8
Build date: 2020-12-10 00:32:24 UTC
 
=== Android Device Manager ===
 
Version: 16.8.0.46
Hash: 0a81419
Branch: remotes/origin/d16-8
Build date: 2020-12-10 00:32:44 UTC
 
=== Build Information ===
 
Release ID: 808050018
Git revision: e83d51ec050ffcdd573462fc1889b58cfe1a5ad5
Build date: 2021-01-07 14:45:50-05
Build branch: release-8.8
Xamarin extensions: e83d51ec050ffcdd573462fc1889b58cfe1a5ad5
 
=== Operating System ===
 
Mac OS X 10.16.0
Darwin 20.2.0 Darwin Kernel Version 20.2.0
    Wed Dec  2 20:39:59 PST 2020
    root:xnu-7195.60.75~1/RELEASE_X86_64 x86_64
 
=== Enabled user installed extensions ===
 
Visual Studio for Mac Extension for Tizen 1.5
Meadow 0.7.8
MonoGame Extension 3.8.0.1643
vivek ellur

Hi Dominique Louis,

 

Visual Studio for Mac setup looks fine. Not able to figure out why it's failing. Can you please send the log file by opening the directory from Visual Studio for Mac Menu -> Help -> Open Log Directory. There will be log files with names starting from ide*. Could you please send those files.

As you mentioned, you need to release this week..till we figure the above issue, If you have a windows machine, you can install the Tizen extension in Visual Studio for Windows and debug the app. It should work fine in windows.

Dominique Louis

Hi Vivek,

  Will you be able to help futher?

 

D.

Lucey Baggio

Thanks a lot for the info!

Dominique Louis

Hi Vivek Elluer,

You still haven't explained how I can attach a file to these posts? The UI is all in Korean, so I can't tell if I can do that or not? So how do I "Send those files"??

 

D.

Dominique Louis

Hi I switched to my Windows (Windows 10 Home, with latest updates) machine which has VS 2019 Professional installed on it (v.16.8.4), with Tizen Template Studio v1.0.7531.1 and the package manager won't even start there!!

This is the error message....

But I have the very latest JDK installed 15.

 and the JAVE_HOME Environment variable set.

So I can't work at all there either!

I'd prefer to fix the issue on Mac as that is my main development environment.

 

D.