469,336 Members | 5,745 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,336 developers. It's quick & easy.

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 1757
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
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
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
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
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
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
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
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
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.

Similar topics

1 post views Thread by c_shah | last post: by
1 post views Thread by Epetruk | last post: by
6 posts views Thread by Andrew Rowley | last post: by
5 posts views Thread by Jonas Hallgren | last post: by
3 posts views Thread by =?Utf-8?B?bG10dGFn?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.