This project is read-only.

New-DbgSession with -dump option failed.


Very new to PowerDbg...
When I try creating a new debug session as following,
PS C:> New-DbgSession -dump C:\temp\DUMP417d.dmp
this attemp throwed an exception as below.
Exception calling "Start" with "1" argument(s): "The system cannot find the file specified"
At C:\Users\dchung\Documents\WindowsPowerShell\Modules\PowerDbg\PowerDbg.psm1:540 char:40
  • [System.Diagnostics.Process]::Start <<<< ($startInfo) # nb: returns process handle as function return
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : DotNetMethodException
      You cannot call a method on a null-valued expression.
      At C:\Users\dchung\Documents\WindowsPowerShell\Modules\PowerDbg\PowerDbg.psm1:238 char:23
  • while($reader.Peek <<<< () -ge 0){ # -1 indicates no chars to be read
    • CategoryInfo : InvalidOperation: (Peek:String) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull
      Create a PowerDbg session using Connect-Dbg first
      At C:\Users\dchung\Documents\WindowsPowerShell\Modules\PowerDbg\PowerDbg.psm1:269 char:14
  • throw <<<< 'Create a PowerDbg session using Connect-Dbg first';
    • CategoryInfo : OperationStopped: (Create a PowerD...nnect-Dbg first:String) [], RuntimeException
    • FullyQualifiedErrorId : Create a PowerDbg session using Connect-Dbg first
      Is there anyone successfully created a dump debug session?
      thanks in advance


geopgin wrote Jun 7, 2012 at 3:37 PM

I'm seing the exact same thing. Are you using the windows 8 toolkit? Did you find a resolution for this issue?

wrote Jun 7, 2012 at 4:46 PM

geopgin wrote Jun 7, 2012 at 5:13 PM

i corrected this by...

Modifying the Get-DbgToolsLocation() function, specifically the $searchpaths to include the windows kit paths.

"C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x86",
"C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x64"

What didn't work...

I created a path and included the above dirs, did not work. Had to delete the path before the above worked

wrote Feb 14, 2013 at 3:30 AM