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

StackFrame class

P: n/a
I am using StackFrame class to retrieve File Name and File Line number for
printing out into the debug file.

Everything is working under Debug build. However StackFrame doesn't capture
File Name and File Line Info in release build.

Is there anyway or any class which can be used as an alternative?

see this link for more info

http://www.hanselman.com/blog/CommentView,guid,339.aspx
--
Scott
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi,

In release the extra debug info needed to get this information is not
included in the EXE, as it occupy space. Why don't you just use the debug
version?
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"scottrm" <sc*****@newsgroup.nospam> wrote in message
news:DD**********************************@microsof t.com...
I am using StackFrame class to retrieve File Name and File Line number for
printing out into the debug file.

Everything is working under Debug build. However StackFrame doesn't
capture
File Name and File Line Info in release build.

Is there anyway or any class which can be used as an alternative?

see this link for more info

http://www.hanselman.com/blog/CommentView,guid,339.aspx
--
Scott

Nov 17 '05 #2

P: n/a
This is "by design". That info requires a .pdb file which is generated only
in Debug configuration. Supposedly you ship debug versions during the betas,
and you ship a release version for the final build, when bugs have been
fixed (in theory).

However, you can configure the Debugging behavior of the Release
configuration in the Project properties window (Configuration Properties,
Build node, Generate Debugging Information field).

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"scottrm" <sc*****@newsgroup.nospam> escribió en el mensaje
news:DD**********************************@microsof t.com...
I am using StackFrame class to retrieve File Name and File Line number for
printing out into the debug file.

Everything is working under Debug build. However StackFrame doesn't
capture
File Name and File Line Info in release build.

Is there anyway or any class which can be used as an alternative?

see this link for more info

http://www.hanselman.com/blog/CommentView,guid,339.aspx
--
Scott

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.