httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Flowering Weeds <floweringwe...@hotmail.com>
Subject [users@httpd] Debugging Apache With PowerShell
Date Sun, 08 Mar 2009 17:02:48 GMT

 

 

In the thread Real time thread tracking
http://mail-archives.apache.org/mod_mbox/httpd-users/200903.mbox/%3c4df3a1330903071903o5b67ec90m1adba40182ff5900@mail.gmail.com%3e

 

Under the words

 

> As for debugging with PowerShell look at these classes

 

Brian Mearns said

 

No one asked or even mentioned debugging with PowerShell.

 

Mmm in the thread Real time thread tracking
http://mail-archives.apache.org/mod_mbox/httpd-users/200903.mbox/%3c1404e5910903071316n4d2758d8y91cd372f7ef10be2@mail.gmail.com%3e

 

Eric Covener asked

 

> Can PowerShell give us backtraces of a running httpd?

 

>From Backtraces - The GNU C Library
http://www.gnu.org/software/libc/manual/html_node/Backtraces.html

 

"A backtrace is a list of the function calls that are currently
active in a thread. The usual way to inspect a backtrace of a
program is to use an external debugger such as gdb."

 

Mmm an external debugger

 

WinDbg - Wikipedia, the free encyclopedia
http://en.wikipedia.org/wiki/WinDbg

 

"WinDbg is a multipurpose debugger for Microsoft Windows, 
distributed on the web by Microsoft."

 

Now under


> Can PowerShell give us backtraces of a running httpd?

 

Flowering Weeds replied

 

Windows PowerShell is a .NET admin's automation tool

 

Automate what ever one does more than once!

 

Combine PowerShell with dump process programs,
or .NET tracking class information, then perhaps
data parse, perhaps by Log Parser, and then bingo!

 

All within .NET PowerShell.

 

And now examples that Apache users can follow:

 

PowerDbg - Automated Debugging using WinDbg and PowerShell - Home
http://www.codeplex.com/powerdbg

 

For some examples concerning debugging read the below blog
(PowerShell starts near)

 

Debugging Toolbox : [PowerShell Script] PowerDbg – Using PowerShell to Control WinDbg
http://blogs.msdn.com/debuggingtoolbox/archive/2007/09/05/powershell-script-powerdbg-using-powershell-to-control-windbg.aspx

 

Once again thanks to all for helping to
explain how to use PowerShell for debugging
any process - even Apache based processes!

 

 

_________________________________________________________________
Hotmail® is up to 70% faster. Now good news travels really fast. 
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_70faster_032009
Mime
View raw message