473,748 Members | 2,506 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

release / debug question

dee
Hi
I'm about to upload my site and I have switched to release version. Is that
enough or do I still need to disable
<compilation defaultLanguage ="vb" debug="true" />
the debug="true" in the .pdb file?
Is the .pdb necessary for the release version?
Thanks a bunch.
Dara
Nov 19 '05 #1
9 1998
If you compiled as Release, the pdb's are not needed.

1. Don't upload the pdb's.
2. Set debug to false in your web.config.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"dee" <dee@home> wrote in message news:u9******** ******@TK2MSFTN GP14.phx.gbl...
Hi
I'm about to upload my site and I have switched to release version. Is that enough or do
I still need to disable
<compilation defaultLanguage ="vb" debug="true" />
the debug="true" in the .pdb file?
Is the .pdb necessary for the release version?
Thanks a bunch.
Dara

Nov 19 '05 #2
dee
Juan
If I didnt set debug to false would any debug symbol get added to to my
release dll?
In other words setp 2 is still needed for release version?
Thanks
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:uC******** ********@TK2MSF TNGP10.phx.gbl. ..
If you compiled as Release, the pdb's are not needed.

1. Don't upload the pdb's.
2. Set debug to false in your web.config.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"dee" <dee@home> wrote in message
news:u9******** ******@TK2MSFTN GP14.phx.gbl...
Hi
I'm about to upload my site and I have switched to release version. Is
that enough or do I still need to disable
<compilation defaultLanguage ="vb" debug="true" />
the debug="true" in the .pdb file?
Is the .pdb necessary for the release version?
Thanks a bunch.
Dara


Nov 19 '05 #3
there are two compiler involved. vs.nets compile of code behinds, controlled
by pick release or debug. there is also the compile of the aspx pages when
they are first hit, web.config controls they are compiled with debug info or
not (regardless of how the dll are compiled).

-- bruce (sqlwork.com)
"dee" <dee@home> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Juan
If I didnt set debug to false would any debug symbol get added to to my
release dll?
In other words setp 2 is still needed for release version?
Thanks
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:uC******** ********@TK2MSF TNGP10.phx.gbl. ..
If you compiled as Release, the pdb's are not needed.

1. Don't upload the pdb's.
2. Set debug to false in your web.config.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"dee" <dee@home> wrote in message
news:u9******** ******@TK2MSFTN GP14.phx.gbl...
Hi
I'm about to upload my site and I have switched to release version. Is
that enough or do I still need to disable
<compilation defaultLanguage ="vb" debug="true" />
the debug="true" in the .pdb file?
Is the .pdb necessary for the release version?
Thanks a bunch.
Dara



Nov 19 '05 #4
re:
If I didnt set debug to false would any debug symbol get added to to my release dll?
No. Release dll's don't have any debug code.

Debug ( pdb ) files are created by VS.NET.

Debug code is included in the *.pdb files,
which are *only* created in Debug mode, not in Release mode.

Setting debug to false only saves the extra work necessary for
the system to find out that debug *.pdb files aren't available.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"dee" <dee@home> wrote in message news:%2******** ********@TK2MSF TNGP09.phx.gbl. .. Juan
If I didnt set debug to false would any debug symbol get added to to my release dll?
In other words setp 2 is still needed for release version?
Thanks
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:uC******** ********@TK2MSF TNGP10.phx.gbl. ..
If you compiled as Release, the pdb's are not needed.

1. Don't upload the pdb's.
2. Set debug to false in your web.config.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"dee" <dee@home> wrote in message news:u9******** ******@TK2MSFTN GP14.phx.gbl...
Hi
I'm about to upload my site and I have switched to release version. Is that enough or
do I still need to disable
<compilation defaultLanguage ="vb" debug="true" />
the debug="true" in the .pdb file?
Is the .pdb necessary for the release version?
Thanks a bunch.
Dara



Nov 19 '05 #5
dee
thanks
"dee" <dee@home> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Juan
If I didnt set debug to false would any debug symbol get added to to my
release dll?
In other words setp 2 is still needed for release version?
Thanks
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:uC******** ********@TK2MSF TNGP10.phx.gbl. ..
If you compiled as Release, the pdb's are not needed.

1. Don't upload the pdb's.
2. Set debug to false in your web.config.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"dee" <dee@home> wrote in message
news:u9******** ******@TK2MSFTN GP14.phx.gbl...
Hi
I'm about to upload my site and I have switched to release version. Is
that enough or do I still need to disable
<compilation defaultLanguage ="vb" debug="true" />
the debug="true" in the .pdb file?
Is the .pdb necessary for the release version?
Thanks a bunch.
Dara



Nov 19 '05 #6
I aggree with your comments
but .pdb file still required for uploading because pdb file contains program
debug information.

Mahesh Prajapati

"Juan T. Llibre" wrote:
re:
If I didnt set debug to false would any debug symbol get added to to my release dll?


No. Release dll's don't have any debug code.

Debug ( pdb ) files are created by VS.NET.

Debug code is included in the *.pdb files,
which are *only* created in Debug mode, not in Release mode.

Setting debug to false only saves the extra work necessary for
the system to find out that debug *.pdb files aren't available.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"dee" <dee@home> wrote in message news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Juan
If I didnt set debug to false would any debug symbol get added to to my release dll?
In other words setp 2 is still needed for release version?
Thanks
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:uC******** ********@TK2MSF TNGP10.phx.gbl. ..
If you compiled as Release, the pdb's are not needed.

1. Don't upload the pdb's.
2. Set debug to false in your web.config.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"dee" <dee@home> wrote in message news:u9******** ******@TK2MSFTN GP14.phx.gbl...
Hi
I'm about to upload my site and I have switched to release version. Is that enough or
do I still need to disable
<compilation defaultLanguage ="vb" debug="true" />
the debug="true" in the .pdb file?
Is the .pdb necessary for the release version?
Thanks a bunch.
Dara



Nov 19 '05 #7
On Mon, 4 Jul 2005 21:37:02 -0700, "Mahesh P"
<Ma*****@discus sions.microsoft .com> wrote:
I aggree with your comments
but .pdb file still required for uploading because pdb file contains program
debug information.


The pdb files are not required. PDBs contain no code - only symbols to
facilitate debugging and error message information. For instance, the
runtime can use the information in a .pdb file to map the byte offset
in a method into a file name and line number of source code.

--
Scott
http://www.OdeToCode.com/blogs/scott/
Nov 19 '05 #8
Let me finish the previous thought by saying that the difference will
be an exception with a stack trace that says "the exception occurred
34 bytes into the Page_Load method" versus a stack trace that says
"the exception occurred on someform.aspx.c s line 16).

http://odetocode.com/Blogs/scott/arc...01/24/963.aspx

--
Scott
http://www.OdeToCode.com/blogs/scott/
Nov 19 '05 #9
Mahesh, didn't you state that :
I have switched to release version
To that, I answered that : If you compiled as Release, the pdb's are not needed.
re: .pdb file still required for uploading
No, it is not, if you compiled a Release version.

re: pdb file contains program debug information.
Assemblies compiled for Release do *not* use pdb files.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"Mahesh P" <Ma*****@discus sions.microsoft .com> wrote in message
news:87******** *************** ***********@mic rosoft.com...I aggree with your comments
but .pdb file still required for uploading because pdb file contains program
debug information.

Mahesh Prajapati

"Juan T. Llibre" wrote:
re:
> If I didnt set debug to false would any debug symbol get added to to my release dll?


No. Release dll's don't have any debug code.

Debug ( pdb ) files are created by VS.NET.

Debug code is included in the *.pdb files,
which are *only* created in Debug mode, not in Release mode.

Setting debug to false only saves the extra work necessary for
the system to find out that debug *.pdb files aren't available.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"dee" <dee@home> wrote in message news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
> Juan
> If I didnt set debug to false would any debug symbol get added to to my release dll?
> In other words setp 2 is still needed for release version?
> Thanks
>
>
> "Juan T. Llibre" <no***********@ nowhere.com> wrote in message
> news:uC******** ********@TK2MSF TNGP10.phx.gbl. ..
>> If you compiled as Release, the pdb's are not needed.
>>
>> 1. Don't upload the pdb's.
>> 2. Set debug to false in your web.config.
>>
>>
>>
>> Juan T. Llibre
>> ASP.NET MVP
>> http://asp.net.do/foros/
>> Foros de ASP.NET en Español
>> Ven, y hablemos de ASP.NET...
>> =============== =======
>>
>> "dee" <dee@home> wrote in message news:u9******** ******@TK2MSFTN GP14.phx.gbl...
>>> Hi
>>> I'm about to upload my site and I have switched to release version. Is that enough
>>> or
>>> do I still need to disable
>>> <compilation defaultLanguage ="vb" debug="true" />
>>> the debug="true" in the .pdb file?
>>> Is the .pdb necessary for the release version?
>>> Thanks a bunch.
>>> Dara
>>>
>>
>>
>
>


Nov 19 '05 #10

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

Similar topics

4
4159
by: | last post by:
Hi, does anyone know what would be the (most common) reasons to get difference answers in VC++.net between running in release and debug ? Thanks, JC
1
1588
by: c_shah | last post by:
I am a SQL DBA just started to learn Visual Basic 2005 so I apologize for this very simple question. What's the fundamental difference between debug mode vs release mode. I am using Visual Basic Express edition when I build my project it is creating two directories inside bin, debug and release. So far I come to know that in the release mode all the debugging information is removed
1
1992
by: Epetruk | last post by:
Hello, In VS2003, I used to have two solutions - a debug and release solution. Each solution had a webservice project and several other class library projects. The webservice project referenced all the other class library projects (i.e. so that it used the dll created when those other projects were built). The debug solution was configured so that all the projects in it had debug
6
9142
by: Andrew Rowley | last post by:
I am having trouble getting debug and release builds to work properly with project references using C++ .NET and Visual Studio 2003. I created a test solution, with a basic Windows form C++ project. I then add a class library, and add a reference to this project in the first project. When I do a release build, I see the following in the output from the DLL compile: /OUT:"C:\Documents and Settings\Andrew\My Documents\Visual Studio
5
3399
by: Jonas Hallgren | last post by:
Hello, Is there any general tips on how to solve this problem: my Debug version runs fine but when I do a Release version I get error messages!? I'm hoping it is a simple option somewhere or a flag I can set... Regards, Jonas
0
1148
by: Russ | last post by:
I have a Web Service that was originally created with .NET VC 2003, and subsequently converted to the 2005 version. It works fine when built as a debug version, and run on the workstation it was built on. Now I want to build a release version so I can deploy it to Windows 2003 server. This project is compiled with "/clr:oldSystax". I've run into several problems and I am not sure all of the things I am discovering are related. Any help...
3
1847
by: Russ | last post by:
I have a Web Service that was originally created with .NET VC 2003, and subsequently converted to the 2005 version. It works fine when built as a debug version, and run on the workstation it was built on. Now I want to build a release version so I can deploy it to Windows 2003 server. This project is compiled with "/clr:oldSystax". I've run into several problems and I am not sure all of the things I am discovering are related. Any help...
3
1998
by: TBass | last post by:
Hello, Is there a way to get Visual Studio 2003 look to one directory for debug version dlls when set to DEBUG and then to another directory where I store the release version of a dll when set to RELEASE? My current project uses about 8 dlls I've written in the past, but I don't want to keep re-compiling them for debug/release depending on whether I'm compiling the current project for debug/release.
3
3379
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 using Debug mode. Now we are ready to compile everything for release to production. However, we don’t know whether we should compile all the applications/components/assemblies using Release mode (or keep everything in Debug mode). We’ve...
0
8994
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9329
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8247
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4878
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.