Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

How do I replace built-in default debugger action?

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 05-11-2008   #1 (permalink)
Roman Kuzmin
Guest


 

How do I replace built-in default debugger action?

I would like to replace built-in default debugger action in the console
host. This command:

[System.Management.Automation.Runspaces.Runspace]:efaultRunspace.Debugger.add_DebuggerStop(<my
action>)

of course does not replace the original action, it adds <my action>, so that
both actions coexist and that is not good at all. (BTW, this issue is new in
CTP2, CTP1 used another approach).

Perhaps I do something completely wrong (it works fine in my own host
because there is no built-in action, my added action is the only one).

The question:
Is that possible to replace "the default debugger" in the console host, and,
if yes, how? Or is this scenario not allowed?

--
Thanks,
Roman Kuzmin

http://code.google.com/p/farnet/
PowerShell and .NET in FAR Manager



My System SpecsSystem Spec
Old 05-11-2008   #2 (permalink)
Roman Kuzmin
Guest


 

Re: How do I replace built-in default debugger action?

I forgot to say that adding of a custom debugger action works fine in
Graphical PowerShell, you may try this debugger utility:

http://nightroman.spaces.live.com/bl...39FA!170.entry

Yet another question:
As it is allowed to add multiple default debug actions, then what is it for?

--
Thanks,
Roman Kuzmin

http://code.google.com/p/farnet/
PowerShell and .NET in FAR Manager


My System SpecsSystem Spec
Old 05-22-2008   #3 (permalink)
ca
Guest


 

Re: How do I replace built-in default debugger action?


"Roman Kuzmin" <z@xxxxxx> wrote in message
news:2CAD64CD-503A-461C-BDF6-C4070B24D593@xxxxxx
Quote:

>I forgot to say that adding of a custom debugger action works fine in
>Graphical PowerShell, you may try this debugger utility:
>
> http://nightroman.spaces.live.com/bl...39FA!170.entry
>
> Yet another question:
> As it is allowed to add multiple default debug actions, then what is it
> for?
>
> --
> Thanks,
> Roman Kuzmin
>
> http://code.google.com/p/farnet/
> PowerShell and .NET in FAR Manager
>
>

My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change default action for my drive Michelle Vista General 4 02-16-2008 09:07 AM
Change default action for my drive Michelle Vista file management 4 02-16-2008 09:07 AM
Change default action for my drive Michelle Vista installation & setup 4 02-16-2008 09:07 AM
Folder Default Action aranguren General Discussion 3 01-27-2008 05:15 PM
Default action when clicking on a file? BkStCrawler Vista General 3 11-11-2006 09:38 AM


Update your Vista Drivers Update Your Drivers Now!!

Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008