Solved

How to debug EXE outside of project?

Posted on 2007-04-04
3
2,370 Views
Last Modified: 2013-11-26
I have an EXE with an associated PDB file.  Is there a way to point VS.NET 2005 to these files so I can debug the app?  There isn't any project.  Just the two files.
0
Comment
Question by:brettr
3 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 500 total points
ID: 18855714
PDB file is not enough, it is necessary to have source code. Having PDB file without source code you can see only Assembly code.
To start debugging running executable, use Attach to Process Visual Studio command.

Assuming that this is legal, you can use Reflector http://www.aisto.com/roeder/dotnet/ to create source code from .NET executable. AFAIK, there is some Reflector enhancement which allows to create all source code at once from executable.
0
 

Author Comment

by:brettr
ID: 18855832
Ok, thanks.  I don't want to get that involved with it.  I obsfucated an EXE with .NET Reactor and now it crashes before any GUI loads. I do actually have the project but I don't think .NET Reactor uses it.  I wanted to check to see why the EXE crashes but I'll never know because there isn't any process to attach to.  I have it set to obsfucate minimually an not embed DLLs.  I don't want to get all wrapped up in it so I'll probably just try the community edition of Dotfuscator.

I mainly wanted to use .NET Reactor because it keeps people from decompiling your code.  Do you recommend any obsfuscators?
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question