www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ide - Command Line Arguments for Debug

reply Lobachevsky <ibeam2000 gmail.com> writes:
Is there a way to specify command line arguments when debugging 
from Visual D?

That is, what would eventually run as

myApplication.exe -v220 -hz50

but where -v220 -hz50 are supplied to the executable when I press 
(Debug) Start.

I found something which looked promising under Debug - 
Application Properties - Command Line (second to last item in 
list box) - Additional options. However, the text entered here is 
used for the build and will unsurprisingly produce the following 
error:

------ Build started: Project: Application, Configuration: Debug 
Win32 ------
Building Debug\myApplication.exe...
Error: unrecognized switch '-v220'
Error: unrecognized switch '-hz50'
Building Debug\myApplication.exe failed!


properties, under Debug, you can enter command line arguments, 
then run the app with F5.  The debugger will be attached 
automatically.
Aug 05 2016
parent Rainer Schuetze <r.sagitario gmx.de> writes:
On 05.08.2016 17:12, Lobachevsky wrote:
 Is there a way to specify command line arguments when debugging from
 Visual D?

 That is, what would eventually run as

 myApplication.exe -v220 -hz50

 but where -v220 -hz50 are supplied to the executable when I press
 (Debug) Start.

 I found something which looked promising under Debug - Application
 Properties - Command Line (second to last item in list box) - Additional
 options. However, the text entered here is used for the build and will
 unsurprisingly produce the following error:

 ------ Build started: Project: Application, Configuration: Debug Win32
 ------
 Building Debug\myApplication.exe...
 Error: unrecognized switch '-v220'
 Error: unrecognized switch '-hz50'
 Building Debug\myApplication.exe failed!

 under Debug, you can enter command line arguments, then run the app with
 F5.  The debugger will be attached automatically.
You can set the "Command arguments" for debugging on the "Configuration Properties->Debugging" page.
Aug 05 2016