Idera nSoftware Compellent

Copying while debugging

rated by 0 users
This post has 4 Replies | 2 Followers

Top 25 Contributor
Posts 17
Top Contributor
meson3902 Posted: 12-30-2009 8:00 AM

When I debug a script I often need to copy something from my script to paste into the console for further testing. I can right click and select copy, but when I use the standard key strokes, CTRL+C, it stops the sript execution.

 

Top 10 Contributor
Posts 436
Idera Employee

This has been reported before. Unfortunately, it is not an easy fix since we are tied to the Console as the execution host for scripts and the Console uses CTRL+C to stop execution. Use the right-click, select and copy for now.

Top 25 Contributor
Posts 17
Top Contributor

Oh, I don't think I conveyed my issue completely. Not sure if it changes the answer, but the issue I have is when I try and copy in the editor, it cancels the execution. I am not trying to copy from the console.

 

Top 10 Contributor
Posts 436
Idera Employee

No, I understood what you were saying.

When debugging in the Editor the execution context is the PSP Console which is the PowerShell execution host for PowerShell Plus. Even though you are stepping in the Editor we are still executing commands in the Console. CTRL+C triggers an onExecutionEnd event which stops execution.

 

Top 10 Contributor
Posts 436
Idera Employee

Good news. After some more investigation, I have been able to implement SHIFT+F5 to stop debugging instead of CTRL+C (same as Visual Studio) when the Editor has focus. That leaves CTRL+C to the copy operation regardless of whether you are debugging or not.

This code change will be included in the final release of version 3.1. 

Page 1 of 1 (5 items) | RSS
Copyright 2010 PowerShell.com. All rights reserved.