<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>powerdbg Forum Rss Feed</title><link>http://www.codeplex.com/powerdbg/Thread/List.aspx</link><description>powerdbg Forum Rss Description</description><item><title>New Post: Support for windows 8 and WDK in PowerDbg</title><link>http://powerdbg.codeplex.com/discussions/398803</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;In windows 8 debugging tools for windows comes in a new form called WDK.&lt;/p&gt;
&lt;p&gt;The home directory of the good old tools is now :&amp;nbsp;C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x64 (for the 64 bit version) and&amp;nbsp;C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x86 (for the 32 bit version)Unfortunately the PowerDbg module
 does not know that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When loading the module it looks for the home directory of &amp;quot;debugging tools for windows&amp;quot; and put it in a global variable. ($debuggerRoot)&lt;/p&gt;
&lt;p&gt;We have to change the module file and add the correct directories.&lt;/p&gt;
&lt;p&gt;So open the module file (PowerDbg.psm1) and change the function Get-DbgToolsLocation&amp;nbsp;(line 428) so serach path will include the correct folders:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;$searchPaths = &amp;nbsp;&amp;quot;$env:programfiles\Debugging Tools for Windows (x64)&amp;quot;,&lt;br&gt;
&amp;quot;$env:programfiles\Debugging Tools for Windows (x86)&amp;quot;,&lt;span&gt; &lt;br&gt;
&lt;/span&gt;&lt;strong&gt;&amp;quot;$env:programfiles (x86)\Windows Kits\8.0\Debuggers\x64&amp;quot;, #windows 8
&lt;br&gt;
&amp;quot;$env:programfiles (x86)\Windows Kits\8.0\Debuggers\x86&amp;quot;, #windows 8 &lt;/strong&gt;&amp;nbsp;&lt;br&gt;
&amp;quot;C:\debuggers&amp;quot; &amp;nbsp;# for Microsoft internal installs&lt;/p&gt;
&lt;p&gt;As we can see from the code PowerDbg works with only one version at a time. (The first folder in the list)&amp;nbsp;&lt;br&gt;
To switch between x64 and x86 we have to change the order of the folder in the list. I think that a parameter should control that. (TBD)&lt;/p&gt;
&lt;p&gt;Manu&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;</description><author>manukahn</author><pubDate>Wed, 10 Oct 2012 11:44:07 GMT</pubDate><guid isPermaLink="false">New Post: Support for windows 8 and WDK in PowerDbg 20121010114407A</guid></item><item><title>New Post: CDB process exited with the error code -1073741502</title><link>http://powerdbg.codeplex.com/discussions/358913</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hello Everyone,&lt;/p&gt;
&lt;p&gt;first post and am a bit of a noob with powerdbg (but am seriously loving it, i have used windbg for years so automating debugging is pretty fun).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am seeing some inconsistent behaviour when i am using powerdbg. when i open a powershell console, periodically when i attempt to execute my powerdbg scripts i get the following error returned:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;CDB process exited with error code -1073741502&lt;br&gt;
At C:\Users\sbanks\Documents\WindowsPowerShell\Modules\PowerDbg\PowerDbg.psm1:144 char:14&lt;br&gt;
&amp;#43;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;nbsp; &amp;quot;CDB process exited with error code $($SCRIPT:windbgProcess.ExitCode)&amp;quot;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#43; CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : OperationStopped: (CDB process exi...ode -1073741502:String) [], RuntimeException&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#43; FullyQualifiedErrorId : CDB process exited with error code -1073741502&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;sometimes if i rerun the script it works, but more often than not i need to launch a new powershell in order to run my script.&lt;/p&gt;
&lt;p&gt;Is there something i am not doing that is causing this error? or if anyone has encountered this what have they done to work around it? i am considering maybe putting in some conditional logic to launch a new powershell when this occurs but before i do that
 just wanted to see if others have this issue&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;</description><author>kbninja13</author><pubDate>Fri, 08 Jun 2012 17:51:01 GMT</pubDate><guid isPermaLink="false">New Post: CDB process exited with the error code -1073741502 20120608055101P</guid></item><item><title>New Post: Send-PowerDbgCTRL-BREAK </title><link>http://powerdbg.codeplex.com/discussions/227269</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi Piers,&lt;/p&gt;
&lt;p&gt;I don't think that you truly appreciate the need to enable the Ctrl-Break/Ctrl-C functionality. I'm working on a project that will use the PowerDbg module to enable me to write a tool that will monitor a system while a functional test is running, and if the system hangs; to force the debugger to break into the malfunctioning system, force dumpfile to be created, and then to reboot the system. In this case, having the entire test run and not break into the debugger would be a good thing. This use case requires the ability to start and stop the debugger programmatically from a tool. The use of the C-B/C-C functionality isn't just for interactive use. I think that it's very normal to think that a Send-DbgGo command would return without waiting for a response, and to then expect that a Send-DbgBreak would stop the debugger that has been running in an open-loop fashion. This functionality is important enough to me that I'll add the functionality myself. If you would like to look at the results and roll them into the released version, then so much the better. I would rather have the capability rolled up into the release, that way I don't have to patch every new release to add my changes.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Roger&lt;/p&gt;&lt;/div&gt;</description><author>rogerb</author><pubDate>Fri, 23 Sep 2011 19:03:43 GMT</pubDate><guid isPermaLink="false">New Post: Send-PowerDbgCTRL-BREAK  20110923070343P</guid></item><item><title>New Post: Send-PowerDbgCTRL-BREAK </title><link>http://powerdbg.codeplex.com/Thread/View.aspx?ThreadId=227269</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Interesting idea actually. But sending&amp;nbsp;the CTRL-Break / CTRL-C isn't the problem - being in a position to send it is [1].&lt;/p&gt;
&lt;p&gt;(I'm principally talking about v6 here - but I think this mostly applies to v5 as well)&lt;/p&gt;
&lt;p&gt;Say you attach PowerDbg v6 to the debugger, and execute the Send-DbgGo command. PowerDbg sends the command, and - like it does for all commands - starts streaming back the debugger output *until it gets to the next command prompt*. Which&amp;nbsp;may never happen
 of course, because your program may not throw or hit an assigned breakpoint.&lt;/p&gt;
&lt;p&gt;So you hit CTRL-C and Power&lt;strong&gt;Shell&lt;/strong&gt; aborts the current command. At&amp;nbsp;this point you'd expect to be able to&amp;nbsp;use something like this:&lt;/p&gt;
&lt;p&gt;Invoke-DbgCommand &amp;quot;\x3&amp;quot;&lt;/p&gt;
&lt;p&gt;...to send CTRL-C to the debugger, and hit the next command prompt (this is the undocumented Send-DbgBreak cmdlet in v6). But wierdly what happens is that when you
&lt;em&gt;originally&lt;/em&gt; hit CTRL-C, that somehow got sent to the attached debugger, so its
&lt;em&gt;already &lt;/em&gt;sat at the command prompt, just PowerDbg doesn't know (because the CTRL-C also stopped the execution of the current function - Send-DbgGo). If this&amp;nbsp;seems odd to you,&amp;nbsp;you are not alone.&lt;/p&gt;
&lt;p&gt;Now potentially the problem here is that Send-DbgGo is implemented like all the other commands: it's essentially request/response, and won't come back until it's good and ready. Maybe Send-DbgGo should send a 'g'
&lt;em&gt;and return to the prompt&lt;/em&gt;. You could then use Send-DbgBreak at your leasure to stop the debugger, and all would (probably) be well. We'd have to prevent you using any other commands during this period, but that's manageable.&lt;/p&gt;
&lt;p&gt;What's a bit less great is that because we've returned from the command, we're no longer in a position to stream debugger output to the console - Power&lt;strong&gt;Shell
&lt;/strong&gt;is going to own the prompt until the user enters another command, and even if it was possible to write to the console 'from the background' as it were, it would be really disconcerting for the user, so I don't think that's a great direction.&lt;/p&gt;
&lt;p&gt;Do we need this debugger output? I don't know - I guess it depends what you're doing.&lt;/p&gt;
&lt;p&gt;Could we give the user the choice: &lt;strong&gt;Send-DbgGo&lt;/strong&gt; vs&amp;nbsp; &lt;strong&gt;
Send-DbgGo -nowait&lt;/strong&gt; for example. Maybe. Is it too confusing? I don't know.&lt;/p&gt;
&lt;p&gt;I guess the bottom line is that the &lt;em&gt;interactive&lt;/em&gt; debugging experience isn't our top focus for this release, so some questions like this may have to wait for v6.5 to be answered (and would presumably go hand in hand with providing good cmdlet wrappers
 for setting breakpoints and suchlike). I spent an evening looking at it, and it was unfortunately apparent it wasn't going to 'just work' as-is.&lt;/p&gt;
&lt;p&gt;In the meantime, with both v5 and v6 probably the best workaround would be to run everything in attached/UI mode (attach PowerDbg to a WinDbg process in server mode (the v5 model), rather than attach PowerDbg 'directly' to the dump / process like you can
 in v6) then you can always hit CTRL-Break in the WinDbg window to force a breakpoint in a way that PowerDbg will halt at.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;[1] unless you run your DebugBreakProcess from another window / process, in which case PowerDbg not accepting input doesn't really bother you. But it's still hardly ideal that you'd have to do that at all.&lt;/p&gt;
&lt;/div&gt;</description><author>piers7</author><pubDate>Sun, 24 Oct 2010 15:03:53 GMT</pubDate><guid isPermaLink="false">New Post: Send-PowerDbgCTRL-BREAK  20101024030353P</guid></item><item><title>New Post: Send-PowerDbgCTRL-BREAK </title><link>http://powerdbg.codeplex.com/Thread/View.aspx?ThreadId=227269</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;While experimenting for a workaround, I added a hack to call &lt;a href="http://msdn.microsoft.com/en-us/library/ms679298(VS.85).aspx"&gt;DebugBreakProcess&lt;/a&gt;&amp;nbsp;for the debugee.&amp;nbsp; So far its worked out quite well.&lt;/p&gt;&lt;/div&gt;</description><author>DonovanS</author><pubDate>Sun, 17 Oct 2010 18:09:19 GMT</pubDate><guid isPermaLink="false">New Post: Send-PowerDbgCTRL-BREAK  20101017060919P</guid></item><item><title>New Post: Send-PowerDbgCTRL-BREAK </title><link>http://powerdbg.codeplex.com/Thread/View.aspx?ThreadId=227269</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Not yet, but I bumped into a couple myself last week, so I hear you.&lt;/p&gt;
&lt;p&gt;There's actually something wierd going on, because when in a PowerDbg session if you send CTRL-break the debugger is getting that (as well as PowerShell aborting the current command). So we kinda get it for free (if we can rely on that). However PowerDbg gets really confused afterwards because it doesn't know what happened, and its buffers are all wrong.&lt;/p&gt;
&lt;p&gt;We are unfortunately victim here to the mis-match between the request/response nature of a command shell and the fully interactive nature of the debugger in 'run' mode, so the syntax may end up being a bit odd.&lt;/p&gt;
&lt;p&gt;I've created a &lt;a href="http://powerdbg.codeplex.com/workitem/29189"&gt;feature request&lt;/a&gt; for this, for tracking.&lt;/p&gt;&lt;/div&gt;</description><author>piers7</author><pubDate>Sun, 17 Oct 2010 17:28:29 GMT</pubDate><guid isPermaLink="false">New Post: Send-PowerDbgCTRL-BREAK  20101017052829P</guid></item><item><title>New Post: Send-PowerDbgCTRL-BREAK </title><link>http://powerdbg.codeplex.com/Thread/View.aspx?ThreadId=227269</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Are there plans to bring Send-PowerDbgCTRL-BREAK back or add equivalent functionality in v6?&amp;nbsp; I have a couple of scenarios where it would come in handy.&amp;nbsp; Thanks.&lt;/p&gt;&lt;/div&gt;</description><author>DonovanS</author><pubDate>Wed, 15 Sep 2010 07:34:40 GMT</pubDate><guid isPermaLink="false">New Post: Send-PowerDbgCTRL-BREAK  20100915073440A</guid></item><item><title>New Post: Suggest Features for vNext</title><link>http://powerdbg.codeplex.com/Thread/View.aspx?ThreadId=210183</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Roberto has very kindly asked me to help out on the project, and together we are planning a v6 release of PowerDBG.&lt;/p&gt;
&lt;p&gt;Our main focus with this release is going to be making PowerDBG (and by extension WinDBG) really easy to use. We're going to try provide a much more 'PowerShell'y experience, and really play to the strengths of PowerShell as a host.&lt;/p&gt;
&lt;p&gt;At the same time, we're just two guys, and we know next-to-nothing about what you need. &lt;em&gt;So please tell us&lt;/em&gt;. If there are things you don't like, or scenarios where getting an answer out of WinDBG is particularly laborious (and believe me, I feel your pain), shout it out. We want to know.&lt;/p&gt;
&lt;p&gt;Put your suggestions for the next release as Proposed / Feature issues in the issue tracker.&lt;/p&gt;&lt;/div&gt;</description><author>piers7</author><pubDate>Thu, 22 Apr 2010 13:55:13 GMT</pubDate><guid isPermaLink="false">New Post: Suggest Features for vNext 20100422015513P</guid></item></channel></rss>