0

I'm having a difficult time finding the right keywords to search on for this. I'm simply trying to figure out a way to debug an executable file that was created by my application. I just created an executable file from my application that contains some encrypted stuff which starts my application when double clicked, that my application uses for certain things. Is it possible to run that executable program that starts the application, and debug the entry into visual studio? I need to verify that the encrypted data is decrypted properly in the application, and the only way to verify this is with debug, or writing to an output file the decrypted information. I'd rather just debug, so I don't have to remember to take out the code that produces the outfile.

Thanks in advance!

4

1 回答 1

0

Make sure that you application is installed with the .PDBs in the directory with it.

In visual studio, load the solution containing your application.

After you have started the app by double clicking on the associated icon select debug| attach to process ...

Select your process.

If you application is going right into action you may have to add a thread.sleep(10000) (or show a modal dialog) to give you time to attach to the start while you debug - remove it when done.

于 2012-07-24T03:53:14.933 回答