473,659 Members | 2,602 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2573
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******@ecoac hes.com> wrote in news:1150163794 .055226.21230
@i40g2000cwc.go oglegroups.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.Exceptio n-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******@ecoac hes.com> wrote in message
news:11******** *************@i 40g2000cwc.goog legroups.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******@ecoac hes.com> wrote in news:1150248131 .366654.38870
@i40g2000cwc.go oglegroups.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.c om wrote in news:1150309323 .951376.19780
@h76g2000cwa.go oglegroups.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
1668
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. When 'solution A' is built in release mode however, 'project 1' is recompiled and the new dll is put into '/release', but 'project 2' still references the dll from project '1's /debug folder, and as such is compiled using the older /debug version of...
3
1461
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
1860
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: Unable to start debugging on the web server. Access is denied." The only thing I've done recently was installing all the latest Microsoft
3
1430
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
1588
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 answer that when I repeatly run the program during debugging, but it is desired by my client. Presently I just comment it out when I am debugging, but I was wondering if there was a more automatic way? Some type of conditional compilation...
6
1360
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 *.sln ?
1
1987
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 referenced all the other class library projects (i.e. so that it used the dll created when those other projects were built). The debug solution was configured so that all the projects in it had debug
6
9134
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++ project. I then add a class library, and add a reference to this project in the first project. When I do a release build, I see the following in the output from the DLL compile: /OUT:"C:\Documents and Settings\Andrew\My Documents\Visual Studio
2
1284
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 into the .Net code and debug it? -- Terry
0
8428
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8341
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
8851
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
7360
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...
1
6181
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4176
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2759
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
2
1982
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.