Debugging assemblies on CF devices.

D

David Clegg

Is it possible to debug an assembly on a CF device? Whenever I attempt
to do this, VS.NET 2003 tells me

---------------------------
Microsoft Development Environment
---------------------------
A project with an Output Type of Class Library cannot be started
directly.

In order to debug this project, go to the Debugging tab under
Configuration Settings in Project Properties, and set the Start Action
to Start External Program or Start URL. Alternatively, you can add a
non-library project to this solution that uses a reference to this
project and set it as the startup project.
---------------------------
OK
---------------------------

This is despite the projects Start Action being set to 'Program', and
the Start Application being set to '\Program Files\<AppDir>\<AppExe>'.

And if I run an executable which uses the assembly, I cannot step into
the assembly, even though I manually deployed the .pdb file.

--
Cheers,
David Clegg
(e-mail address removed)

Vote 1 http://cc.borland.com/codecentral/ccweb.exe/listing?id=21489 :)
Now supports Google Groups searching with Dyna-extend(tm) technology!

QualityCentral. The best way to bug Borland about bugs.
http://qc.borland.com

"Weaselling out of things is important to learn. It's what separates us
from the animals. Except the weasel." - Homer Simpson
 
P

Peter Foot [MVP]

Make sure that your exe references the debug build of your dll, also it may
be worth adding both projects to the same solution, with the startup project
set to the executable.

Peter
 
D

David Clegg

Peter said:
Make sure that your exe references the debug build of your dll

<light flicks on>
Doh! I think that may be the problem. I won't be able to confirm until
tomorrow, but that sounds quite likely.
also it may be worth adding both projects to the same solution, with
the startup project set to the executable.

I did that, and it didn't work. Should VS be deploying the referenced
assembly in this case, as I don't think it was? The assembly in
question was a patched version of one of the SDF ones, which I was
attempting to deploy to the apps local directory, rather than the
system dir on the device. I initially had to deploy it manually, as VS
wasn't doing it for me, resulting in a TypeLoadException due to the
older assembly being referenced at run-time. Not sure if this is
relevant to the problem at all.

In any case, it's good to know that assembly debugging on CF is
supported, and it's probably only not working in this case due to a
dumb mistake or omission on my part. Thanks for your help, Peter.

--
Cheers,
David Clegg
(e-mail address removed)

Vote 1 http://cc.borland.com/codecentral/ccweb.exe/listing?id=21489 :)
Now supports Google Groups searching with Dyna-extend(tm) technology!

QualityCentral. The best way to bug Borland about bugs.
http://qc.borland.com

"I know I'm not usually a praying man, but if you're up there, please
Superman, help me!" - Homer Simpson
 
J

Jim Cooper

I did that, and it didn't work.

Also make sure that the setting for deployment is "Same as device of
consuming project" or things might not go to the same place

Assemblies in my projects can be debugged transparently.

If you want to pay, I can fly down and see what your settings are :)

Cheers,
Jim Cooper

__________________________________________

Jim Cooper (e-mail address removed)
Tabdee Ltd http://www.tabdee.ltd.uk

TurboSync - Connecting Delphi to your Palm
__________________________________________
 
D

David Clegg

Jim said:
Also make sure that the setting for deployment is "Same as device of
consuming project" or things might not go to the same place

It is, as is the Output File Folder under the Configuration|Device
section. Still no dice.
Assemblies in my projects can be debugged transparently.

If you want to pay, I can fly down and see what your settings are :)

Ummm... I'll pass, but thanks for the offer, Jim. :)

I think I'll switch to the server side code, and revisit this on
Monday, where I'm sure I'll notice what it is that I'm stupidly
overlooking.

--
Cheers,
David Clegg
(e-mail address removed)

Vote 1 http://cc.borland.com/codecentral/ccweb.exe/listing?id=21489 :)
Now supports Google Groups searching with Dyna-extend(tm) technology!

QualityCentral. The best way to bug Borland about bugs.
http://qc.borland.com

"Oh, people can come up with statistics to prove anything, Kent. 14% of
people know that." - Homer Simpson
 
J

Jim Cooper

Ummm... I'll pass, but thanks for the offer, Jim. :)

Well, OK. Just trying to be helpful :)

Cheers,
Jim Cooper

__________________________________________

Jim Cooper (e-mail address removed)
Tabdee Ltd http://www.tabdee.ltd.uk

TurboSync - Connecting Delphi to your Palm
__________________________________________
 

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