locked
Can not load debug symbols from NETStandart Project into UWP Project RRS feed

  • Question

  • User329388 posted

    I migrate from PCL to .NETStandart, the app run ok, but, do not debug code into Core project.

    I obtain "Cannot load debug symbols", in the output windows show this.

    'Quantica.Mobile.Core.UWP.exe' (CoreCLR: CoreCLRUWPDomain): 'D:\Workspaces\Quantica\Quantica.Mobile.Core\Quantica.Mobile.Core.UWP\bin\x86\Debug\AppX\Quantica.Mobile.Core.dll' cargado. No se encuentra el archivo PDB o no se puede abrir. (Cannot find PDB File)

    If i copy this file (Quantica.Mobile.Core.pdb) manually from Debug folder, the break point work, else not.

    I have Xamarin.Forms 2.5.0.122203 and Visual Studio 15.5.3 (I updated Visual Studio after migrate to .netstandart)

    Any suggestion?

    Friday, January 12, 2018 3:50 PM

Answers

  • User329388 posted

    Solution found:

    In the Core Project (.NET Standart Project) Properties > Compilation > Advanced > Select "PDB Only"

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Monday, January 15, 2018 11:09 PM

All replies

  • User329388 posted

    Solution found:

    In the Core Project (.NET Standart Project) Properties > Compilation > Advanced > Select "PDB Only"

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Monday, January 15, 2018 11:09 PM
  • User365452 posted

    I had the same problem in VS2017, but the path to the setting is a little different from OP for me (not sure why?):

    (.NET Standard Project): Build->Advanced->Debugging Info

    The "PDB only" option in the drop down works for me, but a project created pre-update uses "Full" and didn't have any problems. Setting either "Full" or "PDB only" works.

    Appears to be an issue with recent VS 15.5.6 or Xamarin.VisualStudio update that changed the project template.

    Monday, February 12, 2018 10:22 PM
  • User365403 posted

    Hi i'm getting this error and "PDB only" is not working of me, any advice? Gravedad Código Descripción Proyecto Ruta de acceso Archivo Línea Origen Estado suprimido Error error: cannot find symbol if (getClass () == ButtonRenderer.class) symbol: method getClass() location: class ButtonRenderer tttttp.Android C:\Users\x\Source\Repos\tttttp\tttttp\tttttp.Android\obj\Debug\android\src\md5270abb39e60627f0f200893b490a1ade C:\Users\x\Source\Repos\tttttp\tttttp\tttttp.Android\obj\Debug\android\src\md5270abb39e60627f0f200893b490a1ade\ButtonRenderer.java 33 Compilación

    Tuesday, June 12, 2018 4:35 PM