473,761 Members | 1,808 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Diagnost ics.Trace.Asser t, 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 2529
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.goo gle.com...
Hi all,

I am writing code in C# using visual studio .NET 2003.
I use System.Diagnost ics.Trace.Asser t, 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
3596
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 very early draft for a new "assert" syntax: This was inspired in Ruby's assert syntax. I'm not familiar with Ruby at all, so the chances are that this piece of code is broken, but I think the idea is very obvious. In Ruby, assert is simply a...
10
5000
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 test all the corner cases, and thus assert() does not work as good as before. The problem is if there are something really bad which was not captured by assert(), then in runtime, most likely the program will crash. This is the worst user...
9
7567
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? ASP.Default_cs_aspx.Page_Load() +34 System.Web.Util.ArglessEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
2
4390
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
2561
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 difference, they appear to be nearly identical. The app handles all exceptions thru global_Error event, so the exception is never re-thrown (i know that the way you re-throw an exception could lose some info) thanks!~
2
3480
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 trace without any problems. However when an application runs at the production PC deployed with VS2005 setup I don't see line numbers in the stack trace.
2
4789
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 unreadable stack trace that shows me the function or sub where the error occurred plus an offset instead of a line number. I created the "project" from the menus with File->New Web Site. All the documentation says to get line numbers in the...
0
1124
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. When an exception is thrown by my dynamically-compiled assembly, I can get a stack trace on the exception, but it doesn't show what line the error occurred on. I need to be able to tell my user where their error occurred. It doesn't seem to matter...
3
4363
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 all helpful in diagnosing the problem - the intervening messages just divert the user's attention from the most significant parts of the stack, usually the user's call into my module, and the root exception message. For instance, here is a stack...
0
9377
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10136
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9989
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
9925
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
9811
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8814
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...
0
6640
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();...
1
3913
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3509
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.