473,405 Members | 2,379 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,405 software developers and data experts.

Debugging Question...

Hello,

I am debugging an ASP.NET application with many pages and classes.

There is a method that I am working on, but I must know what happened just
before this method was called. I am using the "Call Stack" window but I
always end up with it showing "[External Code]" as the previous event.

Yes, I know that external code just happened but what about the 5 other
pages and classes were doing things before this page? Why did the call
stack clear all those out!?!?

Is there a way to see a history of every page, class, and method that gets
called as you are running through your application? This seems like such a
basic, simple, and required thing Visual Studio should provide that I can
just not seem to find.

So, to sum it up, what I need to know is what class of mine was run before
the place I have my breakpoint.

Thanks!!!

--
Only the Best Freeware at http://www.vbmark.com
Sep 8 '08 #1
3 936
Hi vbMark,

Thanks for your post. My name is Hongye Sun [MSFT]. It's my pleasure to
work with you on this issue.

For this issue, I would suggest you to use tracing.
1. Using trace point.
Please refer to: http://msdn.microsoft.com/en-us/library/232dxah7.aspx
"Tracepoints are a new way of using breakpoints. A tracepoint is a
breakpoint with a custom action associated with it. When the tracepoint is
hit, it causes the debugger to perform the specified action instead of (or
in addition to) breaking program execution."
You can use tracepoints for many of the same purposes that you would use
the Trace Class, but without the need to modify your code.

2. ASP.net tracing
In this way, you could see the pages or page events executed before, but
not user code.
ASP.net provides two ways for tracing. One is page tracing, the other is
application tracing.
a. Page tracing
As documented at
http://msdn.microsoft.com/en-us/libr...08(VS.71).aspx
When enabling page tracing, ASP.NET appends performance information and
page events in the page output. You could use the it to check what page
events are executed before.
b. Application tracing
As documented at
http://msdn.microsoft.com/en-us/libr...7z(VS.71).aspx
When you enable tracing for an entire application in the Web.config file,
trace information is gathered and processed for each page in that
application. You could view all the page has been requested before.

Please try the two solutions and let me know if they work for you. Thanks.

Regards,
Hongye Sun (ho*****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.
*
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#notifications.
*
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://support.microsoft.com/select/...tance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Sep 9 '08 #2
ho*****@online.microsoft.com ("Hongye Sun [MSFT]") wrote in
news:mR**************@TK2MSFTNGHUB02.phx.gbl:
Hi vbMark,

Thanks for your post. My name is Hongye Sun [MSFT]. It's my pleasure
to work with you on this issue.

For this issue, I would suggest you to use tracing.
1. Using trace point.
Please refer to: http://msdn.microsoft.com/en-us/library/232dxah7.aspx
"Tracepoints are a new way of using breakpoints. A tracepoint is a
breakpoint with a custom action associated with it. When the
tracepoint is hit, it causes the debugger to perform the specified
action instead of (or in addition to) breaking program execution."
You can use tracepoints for many of the same purposes that you would
use the Trace Class, but without the need to modify your code.

2. ASP.net tracing
In this way, you could see the pages or page events executed before,
but not user code.
ASP.net provides two ways for tracing. One is page tracing, the other
is application tracing.
a. Page tracing
As documented at
http://msdn.microsoft.com/en-us/libr...08(VS.71).aspx
When enabling page tracing, ASP.NET appends performance information
and page events in the page output. You could use the it to check what
page events are executed before.
b. Application tracing
As documented at
http://msdn.microsoft.com/en-us/libr...7z(VS.71).aspx
When you enable tracing for an entire application in the Web.config
file, trace information is gathered and processed for each page in
that application. You could view all the page has been requested
before.

Please try the two solutions and let me know if they work for you.
Thanks.

Regards,
Hongye Sun (ho*****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments
and suggestions about how we can improve the support we provide to
you. Please feel free to let my manager know what you think of the
level of service provided. You can send feedback directly to my
manager at: ms****@microsoft.com.
*
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...px#notificatio
ns. *
Note: The MSDN Managed Newsgroup support offering is for non-urgent
issues where an initial response from the community or a Microsoft
Support Engineer within 1 business day is acceptable. Please note that
each follow up response may take approximately 2 business days as the
support professional working with you may need further investigation
to reach the most efficient resolution. The offering is not
appropriate for situations that require urgent, real-time or
phone-based interactions or complex project analysis and dump analysis
issues. Issues of this nature are best handled working with a
dedicated Microsoft Support Engineer by contacting Microsoft Customer
Support Services (CSS) at
http://support.microsoft.com/select/...ssistance&ln=e
n-us. ==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.

Good information here. I will play around with this stuff.

Thanks!!

--
Only the Best Freeware at http://www.vbmark.com
Sep 9 '08 #3
You are welcome, vbMark. It's my pleasure to help you.

Have a nice day!

Regards,
Hongye Sun (ho*****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sep 10 '08 #4

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

Similar topics

2
by: Steve Anderson | last post by:
Please excuse my ignorance as I'm fairly new to ASP. We have IIS running on Win2000 and serving out an ASP application. I installed the script debugger tonight. IE6 on the machine has Disable...
5
by: Bob Bamberg | last post by:
Hello All, I have been trying without luck to get some information on debugging the Runtime Error R6025 - Pure Virtual Function Call. I am working in C++ and have only one class that is derived...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
7
by: Frank | last post by:
I'm running a mixed ASP / ASP.NET environment. I can use the debugger in for the ASP.NET code, no problems. But when I turn on ASP Debugging for the project, I get the error message: "Error...
2
by: Alex Clark | last post by:
Hi All, My system: WinXP Pro, VS.NET 2003, SQL Server Personal Edition. I'm having problems with my old favourite demon, SQL Debugging from within VS.NET. I have to say I've found this...
5
by: Velvet | last post by:
Can someone tell me to what process I need to attach to be able to step through my classic ASP code in VS.net 2003. I'm working on an XP box with IIS installed. I also have VS.net 2005 (The...
0
by: Günter Prossliner | last post by:
Hi everybody! The same question I have asked about one week ago in the german asp.net newsgroup, but no one was able to answer the question. Maybe someone is able to in this group! I...
8
by: razael1 | last post by:
I am putting debugging messages into my program by putting blocks that look like this: #ifdef DEBUG errlog << "Here is some information"; #endif All these #ifdef blocks make the code bulky and...
5
by: phnimx | last post by:
Hi , We have developed a number of plug-in .NET Library Components that we typically deploy with our various applications by installing them into the GAC. Each of the applications contains an...
0
by: Peted | last post by:
I suspect there is a better forum for this question, but i couldnt find it. If someone could point me in the right direction or help me with this question it would be muchly appreciated I have...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.