This is a migrated thread and some comments may be shown as answers.

Breakpoints not enabled

3 Answers 86 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ben
Top achievements
Rank 1
Ben asked on 21 Sep 2015, 08:33 AM

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

 

 

 

 

 

 

 

 

 

 

 

3 Answers, 1 is accepted

Sort by
0
Ben
Top achievements
Rank 1
answered on 21 Sep 2015, 09:10 AM
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.
0
Ben
Top achievements
Rank 1
answered on 21 Sep 2015, 09:42 AM

Found it:

 

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

0
Doroteya
Telerik team
answered on 22 Sep 2015, 08:47 AM
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.
Tags
Development (API, general questions)
Asked by
Ben
Top achievements
Rank 1
Answers by
Ben
Top achievements
Rank 1
Doroteya
Telerik team
Share this question
or