Reputation: 310852
I have a .NET console app for which I do not have source code. When I run it, no output is produced on the console.
It's possible in VS to attach to a running process, but I can't find out how to launch a new process with the debugger attached.
Upvotes: 3
Views: 3441
Reputation: 108790
File | Open | Project/Solution
and then open the desired exe file.
Not sure which debugging features are available that way. But you can run it from VS that way.
But I'd look at it in reflector and try find the bug by just looking. Reflector pro visual studio addin might even show the decompiled source while debugging, but as I don't own it, I'm not sure if that works.
Upvotes: 9
Reputation: 1234
You can go about this a backwards way: Create a new solution and project. Pick a C# Console Application project. It doesn't really matter how this project is setup. Then, bring up the properties of the project, select the Debug section. Configure this section to run your progoram. For instance, change the Start Action to Start external program, setup your command line arguments, etc. Then when you run the project, it will run your program.
Upvotes: 1
Reputation: 81660
Yes, you just need to create a new project (ideally the same project otherwise just a dummy one) and on the project properties select "Start external program" and select your exe.
Upvotes: 2