Página 1 de 1
Feeding command line parameters while debugging
Publicado: Jue Mar 18, 2010 7:48 pm
por Guest
Who do you set up automatic command line parameters while in debug mode?
For example, if the main function is
Function Substitution( nTheoremToApply, cDetailedAnnotation,
cApplySymmetry, cVariables )
....
....
Return NIL
,
How do you instruct the debugger to assume that (e.g.)
nTheoremToApply := 3
cDetailedAnnotation := "A"
cApplySymmetry := "S"
cVariables := "p,q,r"
?
There is no problem accessing the variables in non-debugging runtime,
since they can be supplied by the GUI or by the actual command line. I
just need to know how to persuade the debugger that these are the
initial values.
Feeding command line parameters while debugging
Publicado: Sab Mar 20, 2010 12:27 pm
por NoAccount
DC,
I am not sure that I understood your question. BTW, you can use the function
IsDebug() to know if you are running under the debugger. I hope it helps.
Regards,
--
Ignacio Ortiz de Zúñiga
Xailer team
http://www.xailer.com
http://www.xailer.info
"DC" <
NoSpamPlease@nycap.rr.com> escribió en el mensaje
news:[email=4ba27581@svctag-j7w3v3j....]4ba27581@svctag-j7w3v3j....[/email]
> Who do you set up automatic command line parameters while in debug mode?
>
>
> For example, if the main function is
>
> Function Substitution( nTheoremToApply, cDetailedAnnotation,
> cApplySymmetry, cVariables )
>
> ...
> ...
>
> Return NIL
>
>
> ,
>
> How do you instruct the debugger to assume that (e.g.)
>
>
> nTheoremToApply := 3
> cDetailedAnnotation := "A"
> cApplySymmetry := "S"
> cVariables := "p,q,r"
>
>
> ?
>
> There is no problem accessing the variables in non-debugging runtime,
> since they can be supplied by the GUI or by the actual command line. I
> just need to know how to persuade the debugger that these are the initial
> values.
>
Feeding command line parameters while debugging
Publicado: Sab Mar 20, 2010 12:27 pm
por NoAccount
DC,
I am not sure that I understood your question. BTW, you can use the function
IsDebug() to know if you are running under the debugger. I hope it helps.
Regards,
--
Ignacio Ortiz de Zúñiga
Xailer team
http://www.xailer.com
http://www.xailer.info
"DC" <
NoSpamPlease@nycap.rr.com> escribió en el mensaje
news:[email=4ba27581@svctag-j7w3v3j....]4ba27581@svctag-j7w3v3j....[/email]
> Who do you set up automatic command line parameters while in debug mode?
>
>
> For example, if the main function is
>
> Function Substitution( nTheoremToApply, cDetailedAnnotation,
> cApplySymmetry, cVariables )
>
> ...
> ...
>
> Return NIL
>
>
> ,
>
> How do you instruct the debugger to assume that (e.g.)
>
>
> nTheoremToApply := 3
> cDetailedAnnotation := "A"
> cApplySymmetry := "S"
> cVariables := "p,q,r"
>
>
> ?
>
> There is no problem accessing the variables in non-debugging runtime,
> since they can be supplied by the GUI or by the actual command line. I
> just need to know how to persuade the debugger that these are the initial
> values.
>
Feeding command line parameters while debugging
Publicado: Sab Mar 20, 2010 4:59 pm
por Guest
>>I am not sure that I understood your question.<<
In Visual Studio (I stopped working in VS a couple of years ago), as
well as Intellij IDEA, you can specify a set of default parameters for
debugging purposes. These parameters act - pretend - as if they came
from the command line.
>>BTW, you can use the function IsDebug() to know if you are running
under the debugger. I hope it helps.<<
Yes, that can be used to do a workaround. The default assignments can
be made only if IsDebug() is true, thus:
// If in debugger, default the command line parameters
If IsDebug()
nTheoremToApply := 3
cDetailedAnnotation := "A"
cApplySymmetry := "S"
cVariables := "p,q,r"
// If in development, validate command line parameters
Else
If !ValidateCmdPars( nTheoremToApply,;
cDetailedAnnotation,;
cApplySymmetry,;
cVariables;
)
DispError_and_Quit()
Endif
Endif
Something like that should do the trick, ok thanks Ignacio.
Regards,
DC
Feeding command line parameters while debugging
Publicado: Sab Mar 20, 2010 4:59 pm
por Guest
>>I am not sure that I understood your question.<<
In Visual Studio (I stopped working in VS a couple of years ago), as
well as Intellij IDEA, you can specify a set of default parameters for
debugging purposes. These parameters act - pretend - as if they came
from the command line.
>>BTW, you can use the function IsDebug() to know if you are running
under the debugger. I hope it helps.<<
Yes, that can be used to do a workaround. The default assignments can
be made only if IsDebug() is true, thus:
// If in debugger, default the command line parameters
If IsDebug()
nTheoremToApply := 3
cDetailedAnnotation := "A"
cApplySymmetry := "S"
cVariables := "p,q,r"
// If in development, validate command line parameters
Else
If !ValidateCmdPars( nTheoremToApply,;
cDetailedAnnotation,;
cApplySymmetry,;
cVariables;
)
DispError_and_Quit()
Endif
Endif
Something like that should do the trick, ok thanks Ignacio.
Regards,
DC
Feeding command line parameters while debugging
Publicado: Sab Mar 20, 2010 5:47 pm
por jfgimenez
DC,
> In Visual Studio (I stopped working in VS a couple of years ago), as
> well as Intellij IDEA, you can specify a set of default parameters for
> debugging purposes. These parameters act - pretend - as if they came
> from the command line.
You may set them by using the menu option "Run" > "Parameters..."
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
Feeding command line parameters while debugging
Publicado: Sab Mar 20, 2010 5:47 pm
por jfgimenez
DC,
> In Visual Studio (I stopped working in VS a couple of years ago), as
> well as Intellij IDEA, you can specify a set of default parameters for
> debugging purposes. These parameters act - pretend - as if they came
> from the command line.
You may set them by using the menu option "Run" > "Parameters..."
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
Feeding command line parameters while debugging
Publicado: Sab Mar 20, 2010 7:03 pm
por Guest
>>You may set them by using the menu option "Run" > "Parameters..." <<
Yep, I see it, thanks Jose.
Regards,
DC
Feeding command line parameters while debugging
Publicado: Sab Mar 20, 2010 7:03 pm
por Guest
>>You may set them by using the menu option "Run" > "Parameters..." <<
Yep, I see it, thanks Jose.
Regards,
DC