visual studio 2012 - Is it possible to run extra lines of code during debugging -
i want execute lines of code during debugging in visual studio 2012. possible make it. 1 application execute write(,) statements, or evaluate expressions.
if you're using f77 intel compiler, have @ /d-lines option. can write code like
if (x.gt.10) x = 0 d print *, 'x reset' end if
it compile lines d in column 1 if /d-lines option present, otherwise treated comment. i've ever used on f77. don't know if works on f90 etc.
the intel compiler supports preprocessing. use either
- the c type macros #if etc http://software.intel.com/sites/products/documentation/doclib/stdxe/2013/composerxe/compiler/fortran-mac/guid-4a598ac5-1c5f-48f2-ba42-da8f38d46cb3.htm
- the original microsoft/dec macros !dec$ http://software.intel.com/sites/products/documentation/doclib/stdxe/2013/composerxe/compiler/fortran-mac/guid-0e1d6c34-2565-4331-864f-5970ef452e27.htm
if you're using silverfrost, have @ cif-celse-cendif /vparam /sparam options.
Comments
Post a Comment