Bug 34906 - Stopping at breakpoint shows "No compatible code running" in VS2015
Summary: Stopping at breakpoint shows "No compatible code running" in VS2015
Status: RESOLVED ANSWERED
Alias: None
Product: Android
Classification: Xamarin
Component: Debugger ()
Version: 5.1
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-10-15 11:53 UTC by Jeremy Kolb
Modified: 2017-12-07 18:25 UTC (History)
7 users (show)

Tags: BZCU
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Description Jeremy Kolb 2015-10-15 11:53:51 UTC
I have an inproc Android service and when I hit a breakpoint VS2015 shows me a window saying:

"""
No compatible code running

The selected debug engine does not support any code executing on the current thead (e.g. only native runtime code is executing).
"""

The Threads window is empty as is the Call Stack window.

Debugging against Genymotion.
Comment 1 Ashley Gazich [MSFT] 2015-10-15 15:36:54 UTC
Hi,

I reached out to you through our customer support system for additional information. You should see an email from Xamarin with the request very soon. Thank you!
Comment 2 Jeremy Kolb 2015-10-27 14:42:14 UTC
Deleting my bin and obj directories cleared this up.  I seem to have to do that a lot with Xamarin for some reason.
Comment 3 Adam Hartley [MSFT] 2017-06-28 11:48:19 UTC
Marking this as answered as it was dealt with via customer support.
Comment 4 Nick Wilkins 2017-12-06 02:10:49 UTC
Don't mean to necro this or anything, but i'm not quite sure this is resolved. I deleted my bin and obj directories and haven't gotten anywhere. Other people have reported similar problems in the last year. https://forums.xamarin.com/discussion/80413/no-compatible-code-running
Comment 5 Brendan Zagaeski (Xamarin Team, assistant) 2017-12-07 18:25:01 UTC
The existing description of this bug as of Comment 3 was fairly broad, the bug is fairly old, and the last comment (Comment 3) suggests that the issue was resolved for the original reporter of this particular bug over another support contact channel.  Given those considerations, the best way forward for any other user seeing a similar behavior in recent versions would be to file a new bug report, including as many details as possible such as steps to reproduce, actual vs. expected results, and environment information.  Thanks in advance!