c# - Attach VS debugger to executable file instead of running instance -


i'm trying attach vs debugger 1 of own applications running installation directory in release configuration.

when app runs, shows messagebox saying app launched invalid command line arguments. these arguments have been passed app shell when associated file (*.myappfileextension) double clicked.

the installer configures shell send these command lines.

now has gone wrong , cannot seem set breakpoint after attaching vs debugger instance of app. allows setting breakpoint @ call messagebox.show time attach, call has been executed. no breakpoints settable after point.

the error says breakpoint failed bind. 

the question is, possible debug release version without going trouble of compiling , installing debug version?

also, possible vs debugger launch executable valid breakpoints may hit?

edit: in case relevant, call messagebox.show last line of code. why breakpoints not settable @ closing braces follow?

if can modify code, easiest way handle add debugger.launch(); (or debugger.break() break right away) @ start of main function. allow attach debugger application starts.

launching debugging session given command-line arguments possible, , quite simple - open project properties, go debug tab, , add whatever command-line arguments need. can select different executable launch (handy dlls).


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -