Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
9cb03ac6
Commit
9cb03ac6
authored
6 years ago
by
Elizaveta Shashkova
Browse files
Options
Download
Email Patches
Plain Diff
PY-32086 Check file validity before editing breakpoints
parent
03d6cacc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/src/com/jetbrains/python/debugger/AbstractLineBreakpointHandler.java
+2
-2
...brains/python/debugger/AbstractLineBreakpointHandler.java
with
2 additions
and
2 deletions
+2
-2
python/src/com/jetbrains/python/debugger/AbstractLineBreakpointHandler.java
+
2
-
2
View file @
9cb03ac6
...
...
@@ -38,7 +38,7 @@ public class AbstractLineBreakpointHandler extends XBreakpointHandler<XLineBreak
@Override
public
void
registerBreakpoint
(
@NotNull
final
XLineBreakpoint
<
XBreakpointProperties
>
breakpoint
)
{
final
XSourcePosition
position
=
breakpoint
.
getSourcePosition
();
if
(
position
!=
null
)
{
if
(
position
!=
null
&&
position
.
getFile
().
isValid
()
)
{
myDebugProcess
.
addBreakpoint
(
myDebugProcess
.
getPositionConverter
().
convertToPython
(
position
),
breakpoint
);
myBreakPointPositions
.
put
(
breakpoint
,
position
);
}
...
...
@@ -47,7 +47,7 @@ public class AbstractLineBreakpointHandler extends XBreakpointHandler<XLineBreak
@Override
public
void
unregisterBreakpoint
(
@NotNull
final
XLineBreakpoint
<
XBreakpointProperties
>
breakpoint
,
final
boolean
temporary
)
{
final
XSourcePosition
position
=
myBreakPointPositions
.
get
(
breakpoint
);
if
(
position
!=
null
)
{
if
(
position
!=
null
&&
position
.
getFile
().
isValid
()
)
{
myDebugProcess
.
removeBreakpoint
(
myDebugProcess
.
getPositionConverter
().
convertToPython
(
position
));
myBreakPointPositions
.
remove
(
breakpoint
);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help