how to debug a deployed WinForm app

B

bren

My ClickOnce app deploys and runs fine on one test machine, but fails
on another.

The only error message is the ubiquitous "Please tell Microsoft about
this problem." and "Don't Send" button.

When I open the web page that publishes the install link for my
application and click on the Install button, the application installs
correctly; all of the components are in the correct place. It's when
the application runs that the error occurs and the

"application has encountered a problem and needs to close." error
message

along with the other messages in the error dialog appear.

I need to identify the source of the error in the app, and I don't know
where to start.

If this were an ASP.NET page, a specific error would be presented to
the user or the developer. Is there a similar error message available
for deployed WinForm applications.

Thanks, Bren
 
J

Jared

By adding 1 line of code to every routine you can perform a manual trace and
debug

sub1

if IN_DEBUG_MODE then fSplash.txtTrace.text += "Now running sub 1 " +
controlchars.newline


MyApp.EXE /DEBUG
 
B

bren

Hey Jared,

thanks for responding to my post. i appreciate your help.

there must be better runtime debugging tools than putting debug code in
my app.

i learned about some runtime debugging tools at a code camp, and i'm
going to try to track them down; if i get them to work i'll post my
finding here.

Bren
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top