473,385 Members | 1,720 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,385 software developers and data experts.

Trace.Assert don't show line numbers from call stack ?

Hi all,

I am writing code in C# using visual studio .NET 2003.
I use System.Diagnostics.Trace.Assert, and when I get an assertion at
run time, I can see the call stack.
But for each line of the call stack I don't see the line number,
except for the last line of the stack (which corresponds to the
Application.run in fact).

one precision : my application contains several assemblies, and the
call that raises the assertion has to go through the code of different
assemblies.

Is there some particular settings to have to see the line numbers ?

Thanks,
Verane.
Nov 16 '05 #1
2 2503
Hi,

It may seen a dump question, but do you have the pdb files for the
assemblies?

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Verane" <ve************@varianinc.com> wrote in message
news:5b**************************@posting.google.c om...
Hi all,

I am writing code in C# using visual studio .NET 2003.
I use System.Diagnostics.Trace.Assert, and when I get an assertion at
run time, I can see the call stack.
But for each line of the call stack I don't see the line number,
except for the last line of the stack (which corresponds to the
Application.run in fact).

one precision : my application contains several assemblies, and the
call that raises the assertion has to go through the code of different
assemblies.

Is there some particular settings to have to see the line numbers ?

Thanks,
Verane.

Nov 16 '05 #2


Hi,
Thanks for your reply.
In fact I have all my assemblies and the corresponding .pdb files in the
same directory.
I don't know much about .pdb files. May be something is missing in them
??

Regards,
Verane.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3

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

Similar topics

28
by: Fábio Mendes | last post by:
I'm sorry if it's an replicate. Either my e-mail program is messing with things or the python-list sent my msg to /dev/null. I couldn't find anything related in previous PEP's, so here it goes a...
10
by: linq936 | last post by:
Hi, I have many assert() call in my code, now I am considering to replace them with exception. The reason I want to do this change is that with the program going bigger and bigger, it is hard to...
9
by: Jop | last post by:
Hi guys, I'm trying to debug a deployed application (no debug symbols) and what I got is a stack trace similar to this one. What does the '+' prefixed number after the method name signify? ...
2
by: Lasse Vågsæther Karlsen | last post by:
If I got the following code: try { // something that might throw an exception } catch (Exception ex) { // Log contents of ex here throw;
4
by: TS | last post by:
I have an application on one server that shows line numbers in stack trace, but on another server the "in c:\xxx.aspx:line 9999" part that accompanies the "at" part doesn't show. Besides this...
2
by: pavel.orehov | last post by:
Hi, I am using Environment.StackTrace to print the stack trace to the log when I have any exceptions in my application. When I work in development environment I see the line numbers in the...
2
by: John Kotuby | last post by:
Hi all, I am working on what I "thought" was a Web Project in VS 2005 using VB. I have published the site to an IIS server in our office for testing. When I hit a runtime error I get a basically...
0
by: =?Utf-8?B?QmVuIERpbHRz?= | last post by:
I'm using C# as a sort of scripting language by having text entered by my user compiled using the CSharpCodeProvider and run, with references to an assembly that has utility functions in it. ...
3
by: Paul McGuire | last post by:
Is there any way to hide portions of an exception stack trace? When users get exceptions when using pyparsing, there are usually many layers of pyparsing-internal stack messages that are not at...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...

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.