I'm looking for a PowerShell IDE. My requirements are simple:
Syntax highlighting
Debugger
Ability to edit the code while stopped at a breakpoint.
This last point is the problem. I've already looked at https://stackoverflow.com/questions/171514/best-ide-for-powershell and tried PowerShell ISE and PowerGUI - both disallow this. (I've also tried PowerShellAnalyzer, which can only be adequately described in one word: FAIL)
I'm not looking for any edit-and-continue functionality. I literally just want to not be prevented from editing the text while stopped at a breakpoint. I'm not looking for any arguments about why this is not advisable. I just want an IDE that allows it.
PowerSE can edit scripts while stopped at a breakpoint.
I know it's not an issue for you as you said, but you can continue stepping through the script, but it executes the old code so the position marker no longer lines up with the code being executed.
Related
While editing a python file, IDLE is normally changing the color of special python word, change the colors of commented line, and the color of strings.
All according to the color-map, (as any code-editor will do).
My problem is that sometimes after I edit the file, this color changing stop working.
So commenting (or uncommenting) a line, will leave the line colors as is. (Frustration comment: it is very annoying to find out the BUG you are working on is only due a line that you thought is in a comment but it isn't)
I have two bad solutions to this problem, and I hope to find one good solution.
First bad solution is reopening the file, but it is a very bad solution, cause the color change is essential for ongoing development, and I can't always reopen each file.
My second solution is to stop working with IDLE, this is also bad, cause I like the simplicity of IDLE for quick and simple coding tasks.
This happened to me on a Windows and a Linux machine
[Edited Windows Tk version]
Windows python version 2.7.10 and Tk version 8.5.15
Linux python version 2.7.11+ and Tk version 8.6.5
In IDLE there is a hidden key combination CTRL-/, that toggles Auto Coloring. Currently there is no way to disable it, for more information see this bugs.python.org/issue27170.
I post this answer after investigation this issue with #terry-jan-reedy in the question comments.
The reason I used CTRL-/ in the first place is because of habit from using PyCharm - which is used for comment a line.
I'm new with PyCharm. In a debugging session, the current line that is being executed is highlighted. I may look around in the code and lost where I am. Is there a quick way to go to the current line that is being executed?
BTW, I added other JetBrains IDE tags it's because I think they may have similar shortcuts or similar way to solve the problem. You are freely to remove them if you think it's not proper.
Run | Show Execution Point
(The action has a keyboard shortcut which depends on the keymap that you're using; the shortcut is shown in the menu.)
While editing a JavaScript file, the IDE shows highlights on the lines that have problems and displays the lightbulb when you're on one of those lines.
How can I see a live list of all problems found in the current file (e.g. syntax errors)?
The only way I found so far was to manually run inspection and check the inspection window. That's quite cumbersome. Even the "Problems" section of the Project window updates itself automatically as soon as I change the code (even without saving) - but it doesn't display the actual errors (only which files have errors).
Apparently the IDE knows what errors exist in the file - I just can't find a way to see all of them in a list.
In every other IDE I know, it is a built-in, enabled-by-default, feature: eclipse, visual studio, brackets, etc.
Apparently this is an open issue on the IntelliJ family of products. Please upvote that issue if you feel it is missing as well!
First off, it is nice that they are trying to get code completion on the gdb command prompt in Xcode 4. But in its current state, it makes using the command prompt to investigate objective c objects nearly impossible - when I'm typing, it autocompletes the word to something I didn't want, and there is no way to undo this without manually selecting the text and removing it, then starting over.
I should probably file a bug with apple for this, but in the meantime, does anyone have a work around for this (like say, turning off auto-completion for the debugger without turning it off for code editing - I like auto-completion in obj-c because method names are so long :).
The closest I've come to solving this incredibly annoying problem is to turn off automatic code completion in general (Preferences > Text Editing > Suggest Completions While Typing) and then hit esc whenever I actually do want code completion.
I created a script in Outlook 2003 VBA that watches for new appointments, and sets them to tentative and no reminder as I create them. I find that seemingly at random, the VBA editor will open itself. It doesn't happen when I use the new script, but it did happen this morning when I un-hibernated my laptop, for example.
The editor doesn't pop up any runtime errors or highlight any lines in the script, it's just there as if I had pressed Alt-F11 to launch it. Sometimes I close other apps and see that it's been sitting back there for a while.
This behavior has only been occurring since I created this new script. Any ideas why this would occur?
As stated in, Microsoft Support Center:
"This problem occurs only if the Microsoft Visual Basic Editor window
is maximized."
Solution:
Un-Maximize Visual Basic Editor and close it.
And you are done!
If you have previously set breakpoints, it may be that you still have a phantom breakpoint. Try choosing "remove all breakpoints" and see if that clears the problem.
Check also that you have not chosen "Break on all errors" under options, and that your error handler is functioning properly.
Believe it or not, this is a known issue. Check out this MS Support link:
http://support.microsoft.com/kb/829059
I have the same problem and found it while I was looking for a solution. Since it gives no advice, I kept searching and came across your post. I will come back with an update if I find a solution.
The MS page linked by Jaquez hints at the answer; just make sure you don't run the editor maximized, and the problem should go away. If you restore it to a non-maximized state, then resize it to take up the whole screen, it should remember its position.
It's a pain if you only have a small screen, but on a normal large monitor it works fine, and solved the problem for me.
I have the same problem, except that it only occurs when I've gone in and unlocked the VBA project for editing and haven't restarted Outlook. It seems to open up when I get a new email (that's when my VBA runs) so basically I just have to restart Outlook and lock the project back up.
Sorry I don't know what's really causing it, but locking the VBA project should fix the problem...
My solution was to search for the .otm file of my VBA project. It was stored under data\microsoft\outlook. I closed Outlook and deleted the .otm file. Restarted Outlook and it was solved.
Just wanted to add that I was running into a phantom breakpoint issue with VBA in excel. Clearing all breakpoints did not work for me, but I resolved it as follows: Copy all content from offending module into a text file. Delete module. Re-create module. Copy back in all text. Save. Phantom breakpoint gone.