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

debug dotnet projects

Hi guys, here is a puzzling question... I am able to debug my project
on my dev server very fine. Now, here is a question:

- I set the project to release. I copy the project to the production
server.
- the project has a problem on the production server.
- How do i debug it?

Should I install visual studio on the production server? how do i step
through the code on the production server? It gets so difficult to
debug published dotnet projects. Any hint would be appreciated.

Tascien

Jun 13 '06 #1
6 2545
Hi!

Can't you set your paths for the debugger on your machine to debug a
project running on whatever machine it is as long as you're in the network
and have the appropriate privileges?

Depending on how fast your network is, installing the environment on the
server and debugging locally may be better for your nerves though.

Regards,

Kerstin

"tascien" <ta******@ecoaches.com> wrote in news:1150163794.055226.21230
@i40g2000cwc.googlegroups.com:
Hi guys, here is a puzzling question... I am able to debug my project
on my dev server very fine. Now, here is a question:

- I set the project to release. I copy the project to the production
server.
- the project has a problem on the production server.
- How do i debug it?

Should I install visual studio on the production server? how do i step
through the code on the production server? It gets so difficult to
debug published dotnet projects. Any hint would be appreciated.

Tascien


Jun 13 '06 #2
First, let's step back and look at the process of debugging from a purely
conceptual point of view.

Debugging is a process which involves several different aspects:

1. Following the flow of a process.
2. Identifying the source of erroneous behavior
3. Examining the value of data that changes during the process.

Visual Studio and other development tools provide debugging tool which make
the process of debugging easier, especially, but not limited to, during the
development process. Some of these tools are also available after the
development process. Visual Studio includes tools for Remote Debugging. You
can review all of the Debugging capabilities of Visual Studio at the
following URL:

http://msdn2.microsoft.com/en-us/sc65sadd.aspx

In addition, there are other options available to you, from the "old
school," but using the new technologies. For example, you can use Exception
Logging with a Debug build of a project to log the details of an exception,
in order to provide clues as to what the cause of the exception was. The
System.Exception-derived classes often provide a wealth of information about
the cause of an exception, and can always provide a Stack Trace to assist
you in your diagnosis.

Also, you can use logging to log the values of data that changes during the
process as a diagnostic tool.

We have some Windows Services that incorporate logging, as well as
incorporating the ability to send emails to the developers whenever
something goes awry. This way we are informed of any problems immediately,
even though the Service is, of course, running in the background of another
machine on our network.

Perhaps these few points will help in some way. If you just keep your mind
on the basic concepts of debugging, you may think of a few of your own as
well.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

A lifetime is made up of
Lots of short moments.

"tascien" <ta******@ecoaches.com> wrote in message
news:11*********************@i40g2000cwc.googlegro ups.com...
Hi guys, here is a puzzling question... I am able to debug my project
on my dev server very fine. Now, here is a question:

- I set the project to release. I copy the project to the production
server.
- the project has a problem on the production server.
- How do i debug it?

Should I install visual studio on the production server? how do i step
through the code on the production server? It gets so difficult to
debug published dotnet projects. Any hint would be appreciated.

Tascien

Jun 13 '06 #3
The problem is not the exceptions. I can try, catch exceptions and
write them to the file fine. The issue comes with those errors that are
logical errors. such as program doing what it is not supposed to do.

when you have step through capability on the dev server, you can easily
print out variable names on the debug window and watch the variables.
but on the prod server it become hard.

any hint on how I can attach a debugger to the prod server and step
through using my visual studio? do i have to put the source code on the
prod server?

Jun 14 '06 #4
Hi again!

Do you have network access to the prod server from your development
machine? And are you privileged to run prodessos on the prod server?

If yes, you can run the application an the prod server and debug it from
your development machine, with the VS and sources and everything on your
local machine.

Just read through the link Kevin gave you about remote debugging.

Regards,

Kerstin
"tascien" <ta******@ecoaches.com> wrote in news:1150248131.366654.38870
@i40g2000cwc.googlegroups.com:
The problem is not the exceptions. I can try, catch exceptions and
write them to the file fine. The issue comes with those errors that are
logical errors. such as program doing what it is not supposed to do.

when you have step through capability on the dev server, you can easily
print out variable names on the debug window and watch the variables.
but on the prod server it become hard.

any hint on how I can attach a debugger to the prod server and step
through using my visual studio? do i have to put the source code on the
prod server?


Jun 14 '06 #5
Yes,

I have access to the prod server. I however don't see an article here
that talks about remote debuging... is this link correct?
http://msdn2.microsoft.com/en-us/sc65sadd.aspx

Jun 14 '06 #6
ta*****@gmail.com wrote in news:1150309323.951376.19780
@h76g2000cwa.googlegroups.com:
Yes,

I have access to the prod server. I however don't see an article here
that talks about remote debuging... is this link correct?
http://msdn2.microsoft.com/en-us/sc65sadd.aspx


Yep!

From "Debugging in Visual Studio"
(http://msdn2.microsoft.com/en-us/sc65sadd.aspx)
just go to "Debug Settings and preparations"
(http://msdn2.microsoft.com/en-us/d0b8xh0y.aspx)
then "Remote debugging setup"
(http://msdn2.microsoft.com/en-us/y7f5zaaa.aspx)

Regards,

Kerstin
Jun 16 '06 #7

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

Similar topics

1
by: Eddy | last post by:
Problem: In 'solution A', 'project 1' references 'project 2'. As such, when 'solution A' is built (debug mode), project '1' creates a dll in /debug, and project '2' referneces that dll. All is good....
3
by: aaagent | last post by:
I have a test WinApp that I use to test middle-tier methods why am I having to re-GAC everytime I re-compile in order to debug into my middle-tier projects?
6
by: Peter Afonin | last post by:
Hello: I'm running Windows server 2003. I've never had any problems with debugging, but now I cannot debug ANY of my projects. I'm getting this error: "Error while trying to run project:...
3
by: Mike | last post by:
I installed SP2 on my boxes and now I can no longer debug my asp.net web app. How can i fix that and be able to debug again?
7
by: Tom | last post by:
How can I make code not execute for a debug build, but do execute for a production build? I have code which prompts for an account and password when the program starts up. It is a pain to have to...
6
by: Eitan | last post by:
Hello, I have old asp code. Also : Microsoft Visual Studio .NET 2003. I want to debug old asp (asp, not aspx). The asp has no sln, because it before dotnet - can I attach the asp to a...
1
by: Epetruk | last post by:
Hello, In VS2003, I used to have two solutions - a debug and release solution. Each solution had a webservice project and several other class library projects. The webservice project...
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++...
2
by: =?Utf-8?B?VGVycnk=?= | last post by:
I thought I had done this before but don't seemn to be able to make it work now. I have a .Net assemply I have exposed to COM and I am getting an error in a method call from VB6, how can I step...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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.