continuous

Open full view…

Apps Not Running?

icosahedron
Fri, 08 Jul 2016 22:54:36 GMT

Something of a Xamarin noob here, but when I build an app from a template, nothing happens. The .csx scripts all run fine, but I don't see anything happen when I run an app, other than the console message saying that it ran.

boxofsnoo
Fri, 08 Jul 2016 23:26:13 GMT

Check the "Watch" tab (or the googly eyes) to see the output. The code in the current tab runs, and you tap on the parts of the app and drill down into the executing code. Kinda hard to explain...

icosahedron
Sat, 09 Jul 2016 00:09:45 GMT

Thanks for the reply. Here is what I'm doing. I have Continuous open with no documents in the code window. I type the + in the upper left hand corner, and take the defaults, and choose "iOS App" and press "Create iOS App". This returns me to the project window, and I can see the App.csproj in the listing. I click on App.csproj, and click on Main.cs. I then switch to the Watch tab and press the Play button. Nothing happens, but the message "App.csproj ran" in the upper window and in the console. I then choose all the files in the project, and all reveal the same message. Just for kicks, I put in a Console.WriteLine in Main and thought I might see it print. Nope. I put a Console.WriteLine in one of the .csx scripts and ran that, and it ran and printed what I expected.

jamesmontemagno
Sat, 09 Jul 2016 00:54:27 GMT

I would check out this video: https://brax.tv/platform/xamarin-forms/xamarin-apps-with-continuous-for-ipad As it is a great walkthrough of getting started. You most likely need to tap on the ViewController and then it's constructor.

boxofsnoo
Sat, 09 Jul 2016 01:51:54 GMT

I think instead of Main.cs you want to run MyViewController.cs

icosahedron
Sat, 09 Jul 2016 16:03:19 GMT

Thanks for the help. The video was quite instructive. Is there a define to know when the project is launched via watch instead of via main?

boxofsnoo
Sat, 09 Jul 2016 20:58:55 GMT

It's kinda always from watch as I understand. Main is where it starts but then it passes control to AppDelegate and then the first object is created there, which in this instance is the ViewController. You kinda have to follow the flow until there is something that will show up in the debugger (watch pane)