Example #1
0
        public void Launch(string path, string args, string workingDir)
        {
            VsDebugTargetInfo4 target = new VsDebugTargetInfo4
            {
                dlo = (uint)DEBUG_LAUNCH_OPERATION.DLO_CreateProcess,
                guidLaunchDebugEngine = Constants.NativeOnlyEngine,
                bstrExe    = path,
                bstrArg    = args,
                bstrCurDir = workingDir
            };

            env.LaunchVsDebugger(target);
        }
Example #2
0
        public void Launch(string path, string args, string workingDir)
        {
            PipeLaunchOptions  options = BuildLaunchOptions(path, args, workingDir);
            VsDebugTargetInfo4 target  = new VsDebugTargetInfo4
            {
                dlo     = (uint)DEBUG_LAUNCH_OPERATION.DLO_CreateProcess,
                bstrExe = path,
                guidLaunchDebugEngine = new Guid(EngineConstants.EngineId),
                bstrOptions           = ToXmlString(options)
            };

            env.LaunchVsDebugger(target);
            IVsCommandWindow commandWnd = env.GetService <SVsCommandWindow, IVsCommandWindow>();

            commandWnd.ExecuteCommand("Tools.Alias gdb Debug.VRDebugExec");
        }