Breakpoints not enabled

4 posts, 0 answers
  1. Ben
    Ben avatar
    8 posts
    Member since:
    Mar 2011

    Posted 21 Sep 2015 Link to this post

    we needed access to the ObjectScope from an entity , so after some googling we found this:

    Telerik.OpenAccess.OpenAccessContextBase.GetContext(this)

    But the moment we tried using it, all brealpoints in the source of the domainmodel are no longer enabled.

    Using Debug.WriteLine we found that it also always returned null.

    The moment I removed the line from the code, breakpoints started working again.

    Then after some more googling we found

    Database.GetContext(this) as IObjectScope

    And again breakpoints are no longer enabled. This not happens only to me but to other developers in my team.

    The function works however (using Debug.Write we can see this). But not being able to set breakpoints is a major pain ....

    This is what VS 2015 says of the breakpoint:

     

    The breakpoint will currently not be hit. A copy of VastGoedObject.cs was found in WcfContracts.dll. but the current source code is different from the source found in WcfContracts.dll etc.....

    Indeed we have a VastgoedObject.cs in WcfContracts but that one is as the dll mentions a Wcf contract for the VastGoedObject in the domainmodel.  

     

    Any idea what causes this?

     

    Thanks

     

      Ben

     

     

     

     

     

     

     

     

     

     

     

  2. Ben
    Ben avatar
    8 posts
    Member since:
    Mar 2011

    Posted 21 Sep 2015 in reply to Ben Link to this post

    We renamed the Vastgoedobject.cs in the WcfContracts. The breakpoints are still not enabled, but now with the message that there there is no debug information in the dll. In the modules we see that the domainmodel is indeed build without debug information. This only happens when we reference the lines I mentioned in the code. Remove the lines and it is debuggable again.
  3. DevCraft banner
  4. Ben
    Ben avatar
    8 posts
    Member since:
    Mar 2011

    Posted 21 Sep 2015 in reply to Ben Link to this post

    Found it:

     

    http://www.telerik.com/forums/visual-studio-2015-ctp6-does-not-generate-pdb-file

  5. Doroteya
    Admin
    Doroteya avatar
    502 posts

    Posted 22 Sep 2015 Link to this post

    Hello Ben,

    Indeed, Telerik Data Access Q2 2015 does not officially support Visual Studio 2015. This features is currently in development and should be available with Q3 2015.

    I am sorry for the inconvenience.


    Regards,
    Doroteya
    Telerik
     
    Check out the latest announcement about Telerik Data Access vNext as a powerful framework able to solve core development problems.
Back to Top