thecocce / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

Breakpoint position is not syncronized to the code when deleting line #459

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. set a breakpoint anywhere in a code
2. move cursor to the line begin and hit enter
3. now hit backspace

What is the expected output? What do you see instead?
The code looks exactly as in step 1., but the breakpoint was "left" one line 
below. It has something to do with the cursor and breakpoint relative 
positions. This issue happens only if the breakpoint is set on the current or 
following line, if you edit text more than 1 line away, the breakpoint position 
is synchronized perfectly to the code. 

What version of the product are you using? On what operating system?
2.4.1.0

Please provide any additional information below.
Guys, great work!!! I've downloaded PyScripter yesterday - its amazing. The 
only things I feel are missing (compared to VS) is "auto variables" window in 
debug mode and ability to dock variables window beside the code (right/left). 
Thanks a lot!!!

Original issue reported on code.google.com by gri...@gmail.com on 27 Dec 2010 at 8:52

GoogleCodeExporter commented 9 years ago
Arguably when you press backspace at the beginning of a line, you merge the 
current line with the previous one, which if it did not have a breakpoint it 
should not have after the merging.  

I know that if the previous line was empty then the intention probably is to 
keep the breakpoint and this is how it works in some other IDEs.  
Unfortunately, this is rather difficult to check in PyScripter and it would be 
a lot of work to fix this.  So for the time being I am marking this as "Won't 
do"

Original comment by pyscripter on 11 Jun 2011 at 3:03

GoogleCodeExporter commented 9 years ago
Let me add though that I took the opportunity and provided a couple of other 
fixes related to breakpoints and deletion of text.

Original comment by pyscripter on 11 Jun 2011 at 3:04