469,894 Members | 2,151 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,894 developers. It's quick & easy.

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 1121
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Lothar Scholz | last post: by
1 post views Thread by JJ_377 | last post: by
reply views Thread by Saradhi | last post: by
reply views Thread by Jim Heavey | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.