Export (0) Print
Expand All

FileVersionInfo.IsDebug Property

Gets a value that specifies whether the file contains debugging information or is compiled with debugging features enabled.

[Visual Basic]
Public ReadOnly Property IsDebug As Boolean
[C#]
public bool IsDebug {get;}
[C++]
public: __property bool get_IsDebug();
[JScript]
public function get IsDebug() : Boolean;

Property Value

true if the file contains debugging information or is compiled with debugging features enabled; otherwise, false.

Example

The following example calls GetVersionInfo to get the FileVersionInfo for the Notepad. Then it displays the state of the Boolean IsDebug in a text box. This code assumes textBox1 has been instantiated.

[Visual Basic] 
Private Sub GetIsDebug()
    ' Get the file version for the notepad.
    Dim myFileVersionInfo As FileVersionInfo = _
        FileVersionInfo.GetVersionInfo("%systemroot%\Notepad.exe")
    
    ' Print whether the file contains debugging information.
    textBox1.Text = "File contains debugging information: " & myFileVersionInfo.IsDebug
End Sub 'GetIsDebug

[C#] 
private void GetIsDebug() {
    // Get the file version for the notepad.
    FileVersionInfo myFileVersionInfo = FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe");
 
    // Print whether the file contains debugging information.
    textBox1.Text = "File contains debugging information: " +
       myFileVersionInfo.IsDebug;
 }
    

[C++] 
private:
void GetIsDebug() {
    // Get the file version for the notepad.
    FileVersionInfo* myFileVersionInfo = FileVersionInfo::GetVersionInfo(S"%systemroot%\\Notepad.exe");
 
    // Print whether the file contains debugging information.
    textBox1->Text = String::Format( S"File contains debugging information: {0}", __box(myFileVersionInfo->IsDebug));
 }
    

[JScript] 
private function GetIsDebug() {
    //Get the file version for the notepad.
    var myFileVersionInfo : FileVersionInfo = FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe");
 
    //Print whether the file contains debugging information.
    textBox1.Text = "File contains debugging information: " +
       myFileVersionInfo.IsDebug;
 }
    

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

FileVersionInfo Class | FileVersionInfo Members | System.Diagnostics Namespace

Show:
© 2014 Microsoft