By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,763 Members | 1,609 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,763 IT Pros & Developers. It's quick & easy.

release / debug question

P: n/a
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
Share this Question
Share on Google+
9 Replies


P: n/a
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**************@TK2MSFTNGP14.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

P: n/a
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****************@TK2MSFTNGP10.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**************@TK2MSFTNGP14.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

P: n/a
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****************@TK2MSFTNGP09.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****************@TK2MSFTNGP10.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**************@TK2MSFTNGP14.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

P: n/a
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****************@TK2MSFTNGP09.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****************@TK2MSFTNGP10.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**************@TK2MSFTNGP14.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

P: n/a
dee
thanks
"dee" <dee@home> wrote in message
news:%2****************@TK2MSFTNGP09.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****************@TK2MSFTNGP10.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**************@TK2MSFTNGP14.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

P: n/a
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****************@TK2MSFTNGP09.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****************@TK2MSFTNGP10.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**************@TK2MSFTNGP14.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

P: n/a
On Mon, 4 Jul 2005 21:37:02 -0700, "Mahesh P"
<Ma*****@discussions.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

P: n/a
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.cs line 16).

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

--
Scott
http://www.OdeToCode.com/blogs/scott/
Nov 19 '05 #9

P: n/a
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*****@discussions.microsoft.com> wrote in message
news:87**********************************@microsof t.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****************@TK2MSFTNGP09.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****************@TK2MSFTNGP10.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**************@TK2MSFTNGP14.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 discussion thread is closed

Replies have been disabled for this discussion.