Problems with Visual studio debugging Xamarin.Forms

AmroOsama.1516AmroOsama.1516 SAMember ✭✭
edited September 2018 in Xamarin.Forms

I've been having problem with debugging Xamarin.Forms for the last month.

PS: debugging the Web project is fine, this only happens with Xamarin.Forms and Android, not sure if it exists with iOS.

1- When putting the mouse pointer over an object/property when debugging , it is written to the immediate window.
as if I wrote it myself there to see its details. (Redirect all output window text to the Immediate window is UNCHECKED)

2- When putting the mouse pointer over an object/property when debugging , I can't expand the description to see the content/properties of the object,
although there is a plus/expand icon.

3- During debugging: 'Set Next statement' in the right click menu is grayed.

Not sure what caused all this, because everything was fine,
following is what I did lately:
-Updated Visual studio 15.8.0 to 15.8.1 then 15.8.2 then 15.8.3
-Updated Nuget Packages of Xamarin.Forms and all other related packages.

Solution contains:
1- Asp.net Core 2.1 Web project
2- Xamarin Forms 3.1.0.697729
using .Net Standard 2.0.3
3- Xamarin Android Project
4- Xamarin iOS Project

  • Shared project: Settings > Build > Define DEBUG and TRACE are CHECKED.
  • Android project: Settings > Build > Define DEBUG is CHECKED.
  • Visual Studio > Settings > Debugging >
    * Edit and continue is UNCHECKED.
    * Enable Just my code CHECKED
    * Redirect all output window text to the Immediate window is UNCHECKED

Please let me know if there is any missing info.

Best Answer

  • AmroOsama.1516AmroOsama.1516 SA ✭✭
    Accepted Answer

    15.8.5 is out at last!
    https://docs.microsoft.com/en-us/visualstudio/releasenotes/vs2017-relnotes#15.8.5

    Fixed issues:
    Debugger tooltip does not expand in Xamarin.iOS debugging session.
    Debugger won't let me leave execution point (Android).
    After updating to 15.8.1, data tip does not show when debugging.
    Debugger data tip does not expand [Editor].
    Exception:MSB0001: Internal MSBuild Error: Already registered for build-time.
    Wrong path to resource in manifest for ClickOnce after upgrading to VS 15.8.1.
    ClickOnce Manifest error in 15.8.
    ClickOnce Publish is missing certain references.
    ClickOnce: Language file copied to wrong location.
    Reference missing in the ClickOnce publish folder.
    Compiling non-.NET SDK style F# projects results in an internal MSBuild error unless MSBuild parallelism is set to 1.
    F# is not NGEN'd in Visual Studio.
    F# deploys the FSharp.Core 4.5.0.0 binary in the 4.4.3.0 location.

Answers

  • AmroOsama.1516AmroOsama.1516 SAMember ✭✭

    Update: forgot to mention that I also changed Java Development kit to OpenJDK (Microsoft's Mobile OpenJDK Distribution Preview)

    in Options > Xamarin > Android Settings > Hava development Kit Location.

    I'm starting to think that this is the problem, so I will revert back to using JDK.

    I'll write an update if that was the problem.

  • LandLuLandLu Member, Xamarin Team Xamurai

    If you do want to show the details of this object. You can open the Watch window, type in the object there. Then all of its properties will be shown up. Also you can select the object => right click => QuichWatch.
    This will open a new window to show the details of this object.

  • JohnHJohnH GBMember ✭✭✭✭✭

    @AmroOsama.1516 said:

    2- When putting the mouse pointer over an object/property when debugging , I can't expand the description to see the content/properties of the object,
    although there is a plus/expand icon.

    I have seen this since 15.8, and is still an issue in 15.8.3. I have raised a ticked with MS on this.

  • I have the same problem

  • JohnHJohnH GBMember ✭✭✭✭✭

    @JohnHair said:

    @AmroOsama.1516 said:

    2- When putting the mouse pointer over an object/property when debugging , I can't expand the description to see the content/properties of the object,
    although there is a plus/expand icon.

    I have seen this since 15.8, and is still an issue in 15.8.3. I have raised a ticked with MS on this.

    I just read that this specific issue has been resolved in 15.9 preview 2, and will be released as a Stable update 'soonish'.

  • AmroOsama.1516AmroOsama.1516 SAMember ✭✭
    > @LandLu said:
    > If you do want to show the details of this object. You can open the Watch window, type in the object there. Then all of its properties will be shown up. Also you can select the object => right click => QuichWatch.
    > This will open a new window to show the details of this object.

    Yeah, I know about watch and quick watch,
    But it's much slower in productivity, and it's not the way I'm used to.

    Thanks.
  • AmroOsama.1516AmroOsama.1516 SAMember ✭✭
    > @JohnHair said:
    > @JohnHair said:
    >
    > @AmroOsama.1516 said:
    >
    > 2- When putting the mouse pointer over an object/property when debugging , I can't expand the description to see the content/properties of the object,
    > although there is a plus/expand icon.
    >
    >
    >
    >
    >
    > I have seen this since 15.8, and is still an issue in 15.8.3. I have raised a ticked with MS on this.
    >
    >
    >
    >
    >
    > I just read that this specific issue has been resolved in 15.9 preview 2, and will be released as a Stable update 'soonish'.

    I thought that I had a different problem,
    Hopefully they will release that soon.

    Do you have a link for this bug?
    Is it different than the intellisense 9999 bug?

    Thanks for letting me know!
  • AmroOsama.1516AmroOsama.1516 SAMember ✭✭
    Tell me about it!
    That bug beside the two related bugs i mentioned and another bug i have with HttpClient under android and i'll be officially announced crazy!
  • LandLuLandLu Member, Xamarin Team Xamurai

    @AmroOsama.1516 I test it with VS 2017 15.9.0 Preview 2.0 in the Preview channel. The issues 2 and 3 won't be reproduced, so it has been fixed in an upcoming release.
    But for issue 1, I never saw anything written to the immediate window. You can test if that issue is resolved in 15.9 as well.

  • AmroOsama.1516AmroOsama.1516 SAMember ✭✭

    Good to hear,
    Do you know if i can update 15.8.4 to the 19 preview?
    I guess it needs to be a standalone installation,
    Thus I'll wait for 15.8.5 or 15.9

    Thanks!

  • NMackayNMackay GBInsider, University mod

    @AmroOsama.1516 said:
    Good to hear,
    Do you know if i can update 15.8.4 to the 19 preview?
    I guess it needs to be a standalone installation,
    Thus I'll wait for 15.8.5 or 15.9

    Thanks!

    19 preview is a standalone installation but you can run it alongside the buggy 15.8.x "stable" version. Hope this is patched in 15.8.5

  • AmroOsama.1516AmroOsama.1516 SAMember ✭✭

    Update: forgot to mention that I also changed Java Development kit to OpenJDK (Microsoft's Mobile OpenJDK Distribution Preview)

    in Options > Xamarin > Android Settings > Hava development Kit Location.

    I'm starting to think that this is the problem, so I will revert back to using JDK.

    I'll write an update if that was the problem. > @NMackay said:

    @AmroOsama.1516 said:
    Good to hear,
    Do you know if i can update 15.8.4 to the 19 preview?
    I guess it needs to be a standalone installation,
    Thus I'll wait for 15.8.5 or 15.9

    Thanks!

    19 preview is a standalone installation but you can run it alongside the buggy 15.8.x "stable" version. Hope this is patched in 15.8.5

    Buggy "Stable", well said 😂

  • NMackayNMackay GBInsider, University mod

    I reverted back to the JDK as building the solution was painfully slow, the bad thing is when it upgraded to 15.8 it defaulted to OpenJDK despite it been in beta.

  • AmroOsama.1516AmroOsama.1516 SAMember ✭✭
    Mine did not default to OpenJDK, I had to do it manually.

    And I didn't see any difference in speed, but maybe I was too busy with thr bugs.

    I reverted back anyway.
  • AmroOsama.1516AmroOsama.1516 SAMember ✭✭
    Accepted Answer

    15.8.5 is out at last!
    https://docs.microsoft.com/en-us/visualstudio/releasenotes/vs2017-relnotes#15.8.5

    Fixed issues:
    Debugger tooltip does not expand in Xamarin.iOS debugging session.
    Debugger won't let me leave execution point (Android).
    After updating to 15.8.1, data tip does not show when debugging.
    Debugger data tip does not expand [Editor].
    Exception:MSB0001: Internal MSBuild Error: Already registered for build-time.
    Wrong path to resource in manifest for ClickOnce after upgrading to VS 15.8.1.
    ClickOnce Manifest error in 15.8.
    ClickOnce Publish is missing certain references.
    ClickOnce: Language file copied to wrong location.
    Reference missing in the ClickOnce publish folder.
    Compiling non-.NET SDK style F# projects results in an internal MSBuild error unless MSBuild parallelism is set to 1.
    F# is not NGEN'd in Visual Studio.
    F# deploys the FSharp.Core 4.5.0.0 binary in the 4.4.3.0 location.

Sign In or Register to comment.