c# - How to debug .NET console application from Visual Studio 2013 -
i've created .net 4.5 console application (an .exe file) c# processes data in various files. whole thing runs in less 1 second. have problem testing version of .exe i'd step through in visual studio 2013 debugger using particular input files (the filenames passed command line arguments). can't "attach process..." since process has completed attach it. how debug in case.
note i'm python world, , python equivalent of i'm trying python -m pdb pdb_script.py
.
thanks advice!
add following line in code:
system.diagnostics.debugger.break();
this allow debug application before ends.
Comments
Post a Comment