Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

How can I see the SQL generated by SQLite.NET PCL in Xamarin Studio?

$
0
0

I researched this and all I can find is a suggestion to turn on .Trace = true like this:

        db1 = DependencyService.Get<ISQLite>().GetConnection();
        db1.Trace = true;

I also tried this:

 db2.Trace = true;
 var categories = db2.Query<Category>("SELECT * FROM Category ORDER BY Name").ToList();
 Debug.WriteLine("xxxx");

Well I did this and then restarted the application. When I view the Application output I just see information on threads started and the xxxx but don't see any SQL trace information.

Can anyone give me advice on this. Thanks


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>