classdef (Hidden = true) MSSDKSILDebugger < rtw.connectivity.MSVCSILDebugger
    %MSSDKSILDEBUGGER launch SIL process in MSSDK debugger class using COM
    %interface by default
    %
    %   This is an undocumented class. Its methods and properties are
    %   likely to change without warning from one release to the next.
    
    %   Copyright 2020 The MathWorks, Inc.
       
    methods
        % constructor
        function this = MSSDKSILDebugger(varargin)           
            this@rtw.connectivity.MSVCSILDebugger(varargin{:});
        end
    end
    
    methods(Access = protected)
        function deleteHook(this, svrHandle)
            this.pollMSVCServer(@()svrHandle.invoke('Quit'));
        end
        
        function svrHandle = getHandleToExeProject(this)
            % The COM method has a slightly different handle with the
            % Express edition
            svrHandle = this.MSVCSrvrHandle.Solution;
        end
        
        function progID = getProgID(~)
            % progID for Express edition
            progID = 'WDExpress.DTE';
        end
    end
end