How can i debug xamarin Android with emulator - xamarin.android

I make a android app by xamarin.
I could deploy and move app in emulator successfully.
And next, I want to debug source.
So add break point to source then click debug after clean project.
As a result, project built but deploying skipped and over. happened nothing.
I unchecked "use Fast Deployment(only debug mode)"
And "Preserve application data cache on device between deploys" is uncheck too.
(tried checking and unchecking)
Can i get some idea? Thank you.

Related

Cannot debug Xamarin iOS app when using a notification service extension

I've set up a notification service extension for my Xamarin.iOS app using VS2019 on Windows. The problem is I cannot debug my application anymore because I keep getting a "ditto" exited with code 1 error. If I change my configuration to Release mode, then everything works, but there is an issue with the Debug mode. How can I continue debugging my application?
You should use developer certificate ( Development Provisioning Profile ) if you want to install the applications using XCode - mostly when developing.
Here's what worked for me:
Clean solution, close visual studio, delete bin/obj folders then rebuild.
Switch to debug configuration, then switch your provisioning profile from manual to automatic.
Hope this works for you too.
Right click on the solution, select Options - Configurations - Configuration Mappings and check that in the configuration you want to use, the extension is selected with the right target configuration, hopefully a Debug one.

Xamarin iOS debugger not hitting breakpoints

Yesterday morning as I started working on a Xamarin iOS application when my debugger stopped working. I can place breakpoints but as soon as the application starts the breakpoints become hollow like a red donut. I've rebuilt/cleaned project multiple times, I've also wiped obj/bin folders and nothing seems to work. I can't hit breakpoints.
This doesn't happen to all my classes, it looks like it applies to classes where an async function is used however this isn't always the case.
I also get a message in my debugger window which may have only started showing since this bug.
Xamarin.iOS: Successfully received USB connection from the IDE on port 10000, fd: 7
Xamarin.iOS: Processing: 'start profiler: no'
Xamarin.iOS: Profiler not loaded (disabled)
I'm using Xamarin Studio 6.0.1 Build 9 Indie
I have found solution related to this issue: https://stackoverflow.com/a/34211506/4627978.
Also be sure, that you set Debug configuration in Xamarin Studio (not Release, AppStore, etc.) and enable debugging in Project Options > Build > iOS Debug > Enable debugging
After all this don't forget Clean/Rebuild.
I had this same problem and I got it working after changing the iOS project property Linker Behavior to Don't Link.
Make sure you have the iOS SDK updated to what you have in Xamarin.
Here you go with the solution for Visual Studio:
Right-click your project -> Properties
iOS Debug
Enable debugging (and perhaps also Debugging over WiFi)

Routing app coverage file not copied to the simulator

Since updating to Xcode 6, I see this warning every time I run the app on the simulator. My app has a routing app coverage file and I want it copied to the simulator but it's not happening. This seems like it might be a bug. Is there a workaround?
I had a similar error some time back, because XCode may be using a precompiled version of the app.
This is how I solved it:
In xCode, make sure that your app isn't running in the simulator (click the stop button), then
Build menu > Clean target or SHIFT-CMD-K.
Additionally, clean the content in the Derived Data folder ~/Library/Developer/Xcode/DerivedData/.
Hope it works for you.

xamarin don't build proper apk with android sdk

Yesterday I was able to build apk files.
Since I have add lots of pictures and ressources to theme the app, and when I want to test it on my device, Visual Studio build me one app that crash.
I set the "Release" mode, I go to TOOL>Publish application, I create a keystore and I build the apk.
I put the code to "Disable Debugging" and I've made the manifest.
When I tried to install it, it works, but the app crash.
The application works perfectly with the emulator.
The weight hasn't really change (some Ko) but the app MUST be bigger because of all the pictures I've put, so something is wrong...
Thanks to help me :-)
I unchecked the "Use Shared Runtime" in the properties>Mono android options:

how to Run two BlackBerry simulators in windows eclipse?

How to Run two instance of BlackBerry simulator in windows eclipse?
The documentation regarding developing with BlackBerry Messenger indicates that you can run two simulators at once, at least with the simulators that come bundled with the BBM SDK.
You cannot. If you try, you will get an error message saying only one simulator can run at a time.
What you need to do is:
Install the blackberry eclipse plugins twice and make two
workspace of each eclipse.
Run the two simulators in each eclipse and error like "could not
open port 19780 and it is use by another program....." will pop
out in one of your simulator.
So made the changes in pin,
data-port values in .bat files, rimpublic.property files inside
MDS and fledge-settings.conf in one of your simulator... but this
changes will not be reflected on your eclipse.
So what you need to do is, when you click the debug configuration from your
eclipse, you will see the simulator option there. So, click the simulator and change the PIN value, whatever you have made the changes in .bat files.. and just after that in the simulator you will again find the option of network, there unselect the disable registration button...once all this changes is made click apply and restart your eclipse... this will surely solved your problem

Resources