Happy Shrimp
http://blog.csdn.net/lights_joy/
Welcome reprint, but please keep the author information
After starting debugging, there is a problem, that is, the debug parameter delivery, when the debugger started, we seem to have been unable to obtain the IDE project parameters, which can only be passed through the debugger's environment variables at this time.
First, define the relevant information for the target machine in the project parameters:
These parameters are then passed in through the debugger's environment variable parameters:
When you start debugging, SDM will be called:
intIDEBUGENGINELAUNCH2.launchsuspended(stringPszserver,IDebugPort2Port,stringEXE,stringargs,stringdir,stringEnv,stringOptions,Enum_launch_flagsLaunchflags,UINThStdInput,UINTHstdoutput,UINTHstderror,IDebugEventCallback2Ad7callback, outIDebugProcess2Process)
in here Env you can get the environment variables passed in:
Application of Vs2013 in Linux development (17): Debug Parameter passing