Debug problem: "The breakpoint will not currently be hit. The specified module has not been loaded"

O

Ole

Hi,

Using VS2005 and a windows CE 5.0 device running CF2. Suddenly I can't debug
my C# program from VS2005 - when setting a breakpoint I only see a ring
instead of the normal red dot and when holding the mouse over it I see a
message saying: "The breakpoint will not currently be hit. The specified
module has not been loaded". I have no problem when debugging a normal full
framework application. I have not changed anything in my settings (afaik)
and the problem is also present after a reboot and in a total new and
default project !?!

Searching Google gave no result so any help is highly appriciated.

Thanks
Ole
 
B

Bala

Hey,

I've experienced similar behaviour in Visual Studio 2005. The problem
here seems to be the fact that the "modules" being started by the
debugger aren't the same as the source you're lediting and building.

For example (strongly simplified):
I'm editing a project in c:\VS2005\MyProject
I'm building the project to c:\VS2005\MyProject\Bin\Debug

The debugger starts c:\VS2005\OtherProject\Bin\Debug\project.exe

Hence, the wrong project is started!
I solved this issue by recreating the entire project from scratch
(select "New project" from the Visual Studio menu and manually add all
your source files using "Add existing item"). Somehow my project files
were totally f##ked up, so recreating these solved the problem.

Hope this helps,

Alke Wiebenga



Ole schreef:
 
M

Marc Gravell

I'm guessing that there are (at least) 2 projects involved, one referencing
the other;

Usually this means that the running app has loaded its dll from elsewhere
(e.g. the GAC) and it doesn't match. Check the references, switching
(temporarily) to project referencing if it helps to debug.

Marc
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Did you check if you have the project in Debug and not in release mode?
 
B

Bala

Ole schreef:
Hi,

Using VS2005 and a windows CE 5.0 device running CF2. Suddenly I can't debug
my C# program from VS2005 - when setting a breakpoint I only see a ring
instead of the normal red dot and when holding the mouse over it I see a
message saying: "The breakpoint will not currently be hit. The specified
module has not been loaded". I have no problem when debugging a normal full
framework application. I have not changed anything in my settings (afaik)
and the problem is also present after a reboot and in a total new and
default project !?!

Searching Google gave no result so any help is highly appriciated.

Thanks
Ole

Oh, sorry for my previous post. My bad!!! :)
I kinda read over the part where you say that you already tried
starting a new project.

The only reason I can think of is that the debugger is screwing up. It
loads modules which aren't tied to the source you're editing. Have you
checked out the debugger options (symbols etc.) for anything out of the
ordinary?
 
O

Ole

The project is in debug mode. Even if I do create a new empty Smart Device
project and don't do anything else than setting a breakpoint at
"InitializeComponents" I got the problem ?!?

How do I see if the file it actually tries to debug is the same file as the
project file?

Thanks for your replies!
Ole
 
O

Ole

Have just tried a new project on a Pocket PC 2003 - there it works fine!
this means that it is only on my windows 5.0 device that debug doesn't work
(anymore - it used to).

Thanks
Ole
 
O

Ole

Have now tried to reinstall the SDK for the windows ce 5.0 device - it still
doesn't work. Any clue at all? Where can I find information concerning the
debug structure in VS2005 like what information does the .pdb file hold, how
is it generated, are there more files that are used for debug (the folder
contains a file that is called: "514c36bf-c13e-4091-a3a7-1e566227b20d" is
that used for debug) and etc. Please help!!!

Thanks,
Ole
 
G

Guest

Did you install a newer version of .NET CF 2 on your WM 5.0 device? If you
did you'll need to update your PC too or VS will continue using the older
version and so cannot debug.
 
O

Ole

Hi Gavin,

Yes I did update the CF 2 on the Windows CE device to the latest version
(actually I made the CE with Platform Builder with the juli update). How do
I install the corresponding Compact Framework for my VS2005 and where do I
find it ?

Thanks
Ole
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top