Debug a specific Workspace/Workkset

Hi, We have a dozen workspace/workset combinations for different clients, how do I create a debug file for a specific workset?  If I add the -debug switch I can't pick the build I want to debug.  And the configuration explorer only allows the default C: location (Gives errors when I add a command switch).

The Show Configuration keyin doesn't tell me which .cfg set the variable, or even which level it was set at.

Any help on a better way to evaluate the configs appreciated.

MS version 10.16.00.80

Parents
  • For anyone looking for a similar solution, the below VBA will create a msdebug file from the open CAD build.

    Sub debug_active()
    Dim app As String, cfig As String, wspace As String, wset As String, cmd As String
    
    app = Application.FullName
    cfig = ActiveWorkspace.ExpandConfigurationVariable("$(_USTN_CONFIGURATION)")
    wspace = ActiveWorkspace.ExpandConfigurationVariable("$(_USTN_WORKSPACENAME)")
    wset = ActiveWorkspace.ExpandConfigurationVariable("$(_USTN_WORKSETNAME)")
    
    cmd = """" & app & """" & " "
    cmd = cmd & """" & "-wr" & cfig & """" & " "
    cmd = cmd & """" & "-wk" & wspace & """" & " "
    cmd = cmd & """" & "-wr" & wset & """" & " "
    cmd = cmd & "-debug"
    Debug.Print cmd
    
    Shell (cmd)
    
    End Sub

    Answer Verified By: Michael Reilly 

Reply
  • For anyone looking for a similar solution, the below VBA will create a msdebug file from the open CAD build.

    Sub debug_active()
    Dim app As String, cfig As String, wspace As String, wset As String, cmd As String
    
    app = Application.FullName
    cfig = ActiveWorkspace.ExpandConfigurationVariable("$(_USTN_CONFIGURATION)")
    wspace = ActiveWorkspace.ExpandConfigurationVariable("$(_USTN_WORKSPACENAME)")
    wset = ActiveWorkspace.ExpandConfigurationVariable("$(_USTN_WORKSETNAME)")
    
    cmd = """" & app & """" & " "
    cmd = cmd & """" & "-wr" & cfig & """" & " "
    cmd = cmd & """" & "-wk" & wspace & """" & " "
    cmd = cmd & """" & "-wr" & wset & """" & " "
    cmd = cmd & "-debug"
    Debug.Print cmd
    
    Shell (cmd)
    
    End Sub

    Answer Verified By: Michael Reilly 

Children