ahmedilyas

I had this before and resolved it but cannot seem to resolve this one.

I upgraded a .NET CF 1.0 project to .NET CF 2.0 (C#) and all seems ok. The thing is, everytime I place a debug breakpoint on any part of the code, it never gets hit and I Get the "the breakpoint will currently not be hit" etc.....

Any ideas I know there have been posts here before but I pretty much tried most of them and didn't seem to help me unfortunately. Wondering if I should start a new project (big project) I also did create a new blank project and re-added all the files but that didn't seem to help at all unfortunately




Re: Smart Devices VB and C# Projects breakpoint issues

Chris Mohan

Is the project compiled in release or debug mode If its the former, that would explain why your breakpoints are not getting hit. The debugger needs the debugging symbols (stored in projectName.pdb) in order to let you step through the code.

Sometimes the mode that displays adjacent to the green arrow at the top of vis studio does not match what's set in the configuration manager. To make sure both are set to debug open the configuration manager by going to: Build/ConfigurationManager. Make sure that both the "Active Solution Configuration" and the Project's configuration are set to "Debug" -- listed in the box labeled "Project Contexts"






Re: Smart Devices VB and C# Projects breakpoint issues

ahmedilyas

Thanks Chris but it is in Debug mode - I always have it on debug mode :-)




Re: Smart Devices VB and C# Projects breakpoint issues

ahmedilyas

hmmm even creating a new project has the problem! But I was able to develop fine previously... the only change being is I installed SP1 yesterday for VS2005....




Re: Smart Devices VB and C# Projects breakpoint issues

ahmedilyas

:( very worried. No idea whats happening




Re: Smart Devices VB and C# Projects breakpoint issues

J.Spraul

There is a clue provided in the dowload info for .NET CF 2.0 SP1

(http://www.microsoft.com/downloads/details.aspx familyid=0C1B0A88-59E2-4EBA-A70E-4CD851C5FCC4&displaylang=en)

"Breakpoints do not work if the cached, managed dlls in the bcl directory differ from the ones on the device."

So make sure both the device/emulato image & the development PC have the same version of the .NET CF.





Re: Smart Devices VB and C# Projects breakpoint issues

Steven Bone

To add to J.Spraul's comment:

1. Check the project properties and make sure that "Deploy latest version of Compact Framework" option is checked.

2. Check the 'Build Configuration' (Right-click on the solution name in Solution Explorer) and assure you are deploying the assembly.

3. Check to make sure NETCF 2.0 SP1 is installed on your device and on the desktop. I had an install issue for VS 2005 SP1 that did NOT update the CF (among other things). I recall seeing a post somewhere that tells you how to check this. May want to look at the NETCF install log on the root of the device. 2.0 SP1 fixed a bug related to breakpoints.





Re: Smart Devices VB and C# Projects breakpoint issues

AndyBTechune

I had a similar issue but in C#2005 web project, turns out that SQL Debugging was broken for some reason (and was causing code debugging to stop working). Turned off SQL Debugging and debugging is working fine again Big Smile.


Andy Baird
Cash. Free Time. Luxury Travel. Are you getting yours
http://go.yourwebcash.biz/






Re: Smart Devices VB and C# Projects breakpoint issues

Sabu C.Alex

hi ahmedilyas

You have to install this patch. Download this from msdn and try this.

"NETCFSetupv2.msp"