473,465 Members | 1,922 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Attaching debugger remotely?

I have an application throwing an exception when it starts. I catch
the exception and write this to the event log. The app continues and
completes loading. But now, of course, it doesn't function properly.
For some reason, there isn't an included line number in the exception.
The exception gives the class and method plus that it's a null
reference but no line number.

The app is on MachineB (no VS.NET) and I'd like to attach remotely from
MachineA (VS.NET) to debug it. The problem is the exception will have
already thrown by the time I find the process and attach. I need to
attach before any code executes. I could rebuild the EXE to display a
message box first thing. This would load the process but stop code from
executing until I attach.

Any suggestions?

Thanks,
Brett

Sep 15 '06 #1
3 1205
Brett,

The first thing you should not never do in my opinion.
>I have an application throwing an exception when it starts. I catch
the exception and write this to the event log.
It does not solve anything, you only create a for sure problem in future
with that.

Therefore in my idea, just try to debug it on machine A first. In the way
you want to do it, it cost you for sure 100 times more time than needed.

Just my idea.

Cor
Sep 15 '06 #2
Therefore in my idea, just try to debug it on machine A first.

The exception does not occur on machineA.

Brett

Sep 15 '06 #3
Brett,

Should you than not first investigate the differences.

Used DLLs, type of OS, dotNet versions and than if you don't see it, throw
that in this newsgroup or in the newsgroups

microsoft.public.dotnet.framework
or
microsoft.public.dotnet.general

Although I have the idea that with that information you will get more
responses in this newsgroup because of the fact that it has more visitors.

Cor

"Brett Romero" <ac*****@cygen.comschreef in bericht
news:11**********************@k70g2000cwa.googlegr oups.com...
>Therefore in my idea, just try to debug it on machine A first.

The exception does not occur on machineA.

Brett

Sep 15 '06 #4

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

Similar topics

8
by: Lothar Scholz | last post by:
Is there any python debugger that can 1) be used remotely 2) can handle multiple threads I checked Eric, IDLE and Wing-IDE. None of them can do this. Any other recommendations?
2
by: Andrew Taranov | last post by:
Hi! I've got a problem attaching the Script Debugger to ASP pages under IIS6. Set up everything following IIS6 documentation: turned on ASP debug in IIS Manager; edited permissions for Machine...
1
by: JJ_377 | last post by:
I can get the debugger to work: I get a message: "sp debugging may not work if you log as as Local System Account" while SQL Service is configured to run as a service. You can open Event Viwer to...
6
by: Ken Varn | last post by:
I am trying to remote debug a C# application but the debugger is reporting the following exception: An unhandled exception of type 'System.IO.FileLoadException' occurred in Unknown Module....
0
by: Saradhi | last post by:
Here I am back with the same question again. I am trying to attach my process to the .NET Debugger to debug my process. and I am using the folliwng code. if (...
1
by: Mark Kamoski | last post by:
Hi-- All of sudden (?) the VS.NET v1 IDE is NOT automatically attaching aspnet_wp.exe as a debugged process. Why? Here is the situation. VS.NET (v1)
8
by: Bennett Haselton | last post by:
If I create a new C# Web Project in Visual Studio and add this to the Page_Load method for WebForm1: Response.Write("firsttime"); then hitting F5 to debug the project of course shows the...
0
by: Jim Heavey | last post by:
Hello, I'm having a problem with running the Debugger on Windows 2000 Pro workstation. The help says that there are version of windows in which the debugger is not automatically attached, but it...
1
by: DaveF | last post by:
Any Ideas? Attaching the .net debugger to process ' winformhello.exe' on machine 'PC50781' failed. Error code 0x80040001. -- Dave
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
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
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...
0
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...
0
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,...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.