473,405 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Can i debug using assemblies from the GAC?


Is it possible to debug an application when with assemblies added to the
GAC?
I cannot set break points?!

Thanks
Nov 16 '05 #1
3 3524
You need to put the .pdb file in the same physical directory as the assembly in the GAC. Do do this you have to use the command line as a shell extension masks the physical makeup of the GAC. You want to put the .pdb file in the following directory:

c:\<windir>\assemblies\gac\<simple name>\<version>_<culture or blank>_<public key token>

e.g.

c:\windows\assemblies\gac\util\1.0.0.0__12adf3eb23 567acf

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

Is it possible to debug an application when with assemblies added to the
GAC?
I cannot set break points?!

Thanks

Nov 16 '05 #2
You dont' want to do that - debug it when it's in debug mode and in the
application or debug directory or whatever. Then when you know it works as
you want, put it in release mode, do a build, build the setup project, and
that will install it into the GAC. You shouldn't ever need to *debug* it once
it's already in the GAC...

If you 're doing production-mode debugging (i.e. debugging that *has* to be
done on a computer that doesn't have the IDE installed) you'd want to be
doing a "special edition" build with a setup project that doesn't install to
the GAC.

"Julia" wrote:

Is it possible to debug an application when with assemblies added to the
GAC?
I cannot set break points?!

Thanks

Nov 16 '05 #3
Try debugging a component thats being used from a BizTalk Orchestration then repost your opinion ;-).

Sometimes you don't have an option about how you perform debugging

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

You dont' want to do that - debug it when it's in debug mode and in the
application or debug directory or whatever. Then when you know it works as
you want, put it in release mode, do a build, build the setup project, and
that will install it into the GAC. You shouldn't ever need to *debug* it once
it's already in the GAC...

If you 're doing production-mode debugging (i.e. debugging that *has* to be
done on a computer that doesn't have the IDE installed) you'd want to be
doing a "special edition" build with a setup project that doesn't install to
the GAC.
Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Prasanna Padmanabhan | last post by:
Hi gurus, I usually debug .NET assemblies by pointing to the pdb folder in the VS.NET solution properties and attaching to the process.However, this method does not work for me for assemblies...
1
by: glaserp | last post by:
Hi, I am developing a Windows application with C# in Visual Stuio .NET. My application references three assemblies that are developed in another project. I have added these assemblies as...
2
by: Wayne Sepega | last post by:
We are currently setting up our environment to file reference any assemblies we plan on putting in the GAC. To prevent the developer from having to go get the newest copy of the file and register...
7
by: MB | last post by:
I had a C++ dll that I used for C++ applications. I added a managed C++ class to this library and started to use the managed C++ class in my C# application. This works OK only if I build the C++...
2
by: Martin Hart | last post by:
Hi: I have a project that references some in-house assemblies, and in the 'debug' configuration I use the debug versions of these assemblies, but when I switch to the 'release' configuration, I...
0
by: BA | last post by:
I posted on this once before and could not get a solution, I am hoping someone can help. I have a very strange code debug behavior that I cannot make heads or tails of: I have c# code being...
6
by: =?Utf-8?B?SHVnaA==?= | last post by:
Hi there We are trying to build a C sharp solution in Visual Studio 2005 Professional. We have a number of other assemblies, that do not form part of the solution. Assemblies that do form...
1
by: Jeff Dege | last post by:
When I am building a project in Visual Studio 2005, I can create references to assemblies that were built by other projects. The problem is that I don't see how to create a reference that switches...
3
by: =?Utf-8?B?bG10dGFn?= | last post by:
We have developed a number of different applications (ASP.NET web site, Windows services, DLLs, Windows forms, etc.) in C# 2.0. We have developed and unit tested all these applications/components...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.