Using Windows debugger tools and appearing cmd line window with cdb RRS feed

  • Question

  • Hello,

    I wrote some desktop application using .NET 4.0

    I have to add a crash dumper to the app. I selected adplus.exe from Windows Debugging Tools. I start it from my app, by starting new process, while the loading application. Everything works fine but there are new window appeared with CDB.exe debugger although I ran the adplus.exe process with -Quiet mode paramater.

    I used Adplus v7.01

    Anybody could help, how not to show the window with cdb debugger?

    • Edited by cbitpol Monday, April 13, 2015 1:54 PM
    Monday, April 13, 2015 1:50 PM

All replies

  • According to my knowledge 'adplus -quiet' does only omit an initial dialog on startup - and is obsolete.
    For adplus is more or less a wrapper around cdb, for example this

    adplus -gs -crash -o c:\temp 

    creates a script, here 'C:\TEMP\20150413_175817_ADPlus_Scripts\DebuggerScript.txt', which determines debugger behaviour, when certain events occur - exceptions, shutdown ...
    So feeding cdb with this script (cmd-arg '-cfr') may get results like adplus -crash command-line. But as far as I know cdb always creates a cmd-window.
    Therefore I would try

    ntsd.exe -noio ...

    which does not. - For I practically never use ntsd, there might be some surprises, but for .NET probably ...    

            Dim currentProcess As Process = Process.GetCurrentProcess()
            Dim pStart As New ProcessStartInfo
            If IsDebuggerPresent() = 0 Then
                pStart.FileName = """C:\Program Files (x86)\Windows Kits\8.1\Debuggers\x86\ntsd.exe"""
                pStart.Arguments = "-noio -cfr C:\TEMP\20150413_175817_ADPlus_Scripts\DebuggerScript.txt" & " -p " & currentProcess.Id.ToString()
            End If
    no warranty
    With kind regards

    Monday, April 13, 2015 6:20 PM