Debugging a class library in Compact Framework

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have 3 tiers that run on the Pocket PC, business, data and UI.

The business and data tier - even though this code is local, is contained in
class libraries. I can't seem to animate code contained in these class
libraries. The .pbd file has been created in the DEBUG folder but VS.NET does
not jump into any code from the UI tier?
The business tier goes off and calls a Web Service which then calls a
Serviced Component on a remote server both of which I am able to debug.

Any ideas what I am missing?
Regards
Simon.
 
Some random ideas/question/food for thought...

So you are trying to stepinto a dll method? Are you sure the dll is built in
debug mode? Are you sure you are referencing the dll you think you are and
not one from another folder? Is the build output path for the dll where you
think it is? Alter a method in the project to show up a msgbox and rerun it;
do you get the msgbox popping up? Set a breakpoint in the dll in VS, when
you run the app does the breakpoint have a question mark in it (i.e. the
code is not loaded)?

Cheers
Daniel
 
Hi Daniel,

Here is what I have recently learn't.

The business tier has a ? mark against the breakpoint which as you pointed
out it is loading a different assembly.

When adding references to a project, I try to set the "Copy Local" property
to false as I don't want to keep having to add a new reference everytime I
change that assembly during development. I noticed VS.NET locks these DLLs so
if I set "Copy Local" to false I can't then rebuild it later in the solution
as I get a sharing violation error. In addition, I have found setting "Copy
Local" to false the code does allow me to debug that assembly. I have found
when "Copy Local" is true, VS loads another version?!?

Hope it makes sense.

Regards
Simon.
 
Back
Top