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

How to debug?

Hi,

Last week I realized that my web application is getting slower and
slower.
When I hit a button - the browser starts loading - and after two
seconds I get my page.

Now I want to know where the problem lies. The (built in vs.net)
webserver? The web application? The database? I don't know.

I start hitting the debug button in vs.net but - hmmm - I don't realy
see what's going on.

What is the best way to see what the web application is doing when I
hit some webpages of my application? How can I get a list of currently
executed functions (with timestamp)?

Something like this would be very nice!

Hope somebody can help me with this.
Thanks!
Arjen

Aug 28 '06 #1
3 937
What is the best way to see what the web application is doing when I
hit some webpages of my application? How can I get a list of currently
executed functions (with timestamp)?
Enable tracing

http://msdn2.microsoft.com/en-us/library/0x5wc973.aspx
or
http://msdn2.microsoft.com/en-us/library/94c55d08.aspx

This will show you directly what is going on and when.
Aug 28 '06 #2
Hi
From your question, i assume that your app was performing well before last
week, and now its performance is slightly gowing down. If that is the case,
there can be many reasons to it.

1. At the time you noted this performance slowdown, probably the web server
would have taken more load, and servicing many apps. So, try to check on the
stats again.
2. Probably your application is now getting huge set of datas from the
database, as against the datas you would have been getting very little
previously.
So, the data retrieval process taking longer time might be causing this
problem.
Also when you have huge set of datas with you in memory, then that could
also lead to performance issues.

Well, as you debug, you could easily step through the code, where you have
data retrievals and see how much time it occupies.

Prem

"Arjen" wrote:
Hi,

Last week I realized that my web application is getting slower and
slower.
When I hit a button - the browser starts loading - and after two
seconds I get my page.

Now I want to know where the problem lies. The (built in vs.net)
webserver? The web application? The database? I don't know.

I start hitting the debug button in vs.net but - hmmm - I don't realy
see what's going on.

What is the best way to see what the web application is doing when I
hit some webpages of my application? How can I get a list of currently
executed functions (with timestamp)?

Something like this would be very nice!

Hope somebody can help me with this.
Thanks!
Arjen

Aug 29 '06 #3
Okay, thanks!
I have one webpage which loads modules (think about the I Buy Spy
portal).

Each page loads in 0.01 second. This sounds okay to me.
(0,0137254874572048 --trace show seconds or not?)

When I look to the details then I see that the begin and end load takes
the most time.

aspx.page Begin Load 0,000612927061958992 0,000023
aspx.page End Load 0,122701767962129 0,122089

That it has to do something in the begin load sounds okay, but I have
no idea what it is doing in the end load. Suggestions?

Still I cannot understand why it takes so long to see the page. I hit a
page, have to wait five seconds, and then see my new page. I did a test
with the windows clock. I hit a page at the sixth of a minute (trace
information also says, first hit sixth second). After that it takes
five seconds to get the page back (I count/read the second with the
windows clock). But the trace info shows at the end render
0,222307863150205.
(Or is 0,2 --2 seconds???)

Hope somebody can give me some direction.

Thanks!
Arjen

Mischa Kroon wrote:
What is the best way to see what the web application is doing when I
hit some webpages of my application? How can I get a list of currently
executed functions (with timestamp)?

Enable tracing

http://msdn2.microsoft.com/en-us/library/0x5wc973.aspx
or
http://msdn2.microsoft.com/en-us/library/94c55d08.aspx

This will show you directly what is going on and when.
Aug 29 '06 #4

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

Similar topics

8
by: Davy | last post by:
Hi all, I use VC and gcc/gdb to compile and debug C/C++ files. But I found some of the debug version of the compiled files are too large to be run in a small RAM. Can I compile C/C++ Debug...
4
by: emma middlebrook | last post by:
I have a question regarding asserting ... here's some code: string GetAssertMessage() { ... prepare a message string and return it... } void SomeMethod() { ...
7
by: Srinivasa Rao | last post by:
I have read in one article that when we compile the application in release mode, all the debug classes and properties will be automatically removed from the code. I tried to implement this thing by...
9
by: dee | last post by:
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...
6
by: swartzbill2000 | last post by:
Hello, I have a VB 2005 Express project with a TraceListener-derived class to route Debug.Print output to a log file. It works fine for Debug builds. What is the correct combination of changes to...
6
by: pauldepstein | last post by:
To help me debug, I am writing a lot of information into a stream which I call debug. However, because of the large amount of time taken to print this information, I only want this printed while...
6
by: Andrew Rowley | last post by:
I am having trouble getting debug and release builds to work properly with project references using C++ .NET and Visual Studio 2003. I created a test solution, with a basic Windows form C++...
0
by: BA | last post by:
I posted on this once before and could not get a solution, I am hoping someone can help. I have a very strange code debug behavior that I cannot make heads or tails of: I have c# code being...
1
by: gfergo | last post by:
Good Morning, I seem to be having a problem. I thought I could display detailed debugging information (including file name and line number) on a page using two different methods: 1.)...
3
by: rorni | last post by:
Hi, I'm porting code from Windows to HP-UX 11, compiling with g++. I'm getting a compilation error on the system's debug.h include file, which is included very indirectly through a series of...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.