Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
1d02f33a
Commit
1d02f33a
authored
7 years ago
by
Konstantin Ulitin
1
Browse files
Options
Download
Email Patches
Plain Diff
JS debugger: re-init breakpoints for web workers
parent
0353af35
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
platform/script-debugger/backend/src/org/jetbrains/debugger/DebugEventListener.java
+3
-0
...ackend/src/org/jetbrains/debugger/DebugEventListener.java
platform/script-debugger/debugger-ui/src/DebugProcessImpl.kt
+2
-19
platform/script-debugger/debugger-ui/src/DebugProcessImpl.kt
with
5 additions
and
19 deletions
+5
-19
platform/script-debugger/backend/src/org/jetbrains/debugger/DebugEventListener.java
+
3
-
0
View file @
1d02f33a
...
...
@@ -68,4 +68,7 @@ public interface DebugEventListener extends EventListener {
default
void
errorOccurred
(
@NotNull
String
errorMessage
)
{
}
default
void
childVmAdded
(
@NotNull
Vm
childVm
)
{
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
platform/script-debugger/debugger-ui/src/DebugProcessImpl.kt
+
2
-
19
View file @
1d02f33a
...
...
@@ -25,7 +25,6 @@ import com.intellij.util.io.socketConnection.ConnectionStatus
import
com.intellij.xdebugger.DefaultDebugProcessHandler
import
com.intellij.xdebugger.XDebugProcess
import
com.intellij.xdebugger.XDebugSession
import
com.intellij.xdebugger.XDebuggerManager
import
com.intellij.xdebugger.breakpoints.XBreakpointHandler
import
com.intellij.xdebugger.breakpoints.XBreakpointType
import
com.intellij.xdebugger.breakpoints.XLineBreakpoint
...
...
@@ -270,28 +269,12 @@ abstract class DebugProcessImpl<C : VmConnection<*>>(session: XDebugSession,
}
}
beforeInitBreakpoints
(
vm
)
processBreakpoints
{
handler
,
breakpoint
->
handler
.
manager
.
setBreakpoint
(
vm
,
breakpoint
)
}
}
protected
inline
fun
processBreakpoints
(
processor
:
(
handler
:
LineBreakpointHandler
,
breakpoint
:
XLineBreakpoint
<
*
>)
->
Unit
)
{
val
breakpointManager
=
XDebuggerManager
.
getInstance
(
session
.
project
).
breakpointManager
for
(
breakpointHandler
in
breakpointHandlers
)
{
if
(
breakpointHandler
is
LineBreakpointHandler
)
{
val
breakpoints
=
runReadAction
{
breakpointManager
.
getBreakpoints
(
breakpointHandler
.
breakpointTypeClass
)
}
for
(
breakpoint
in
breakpoints
)
{
processor
(
breakpointHandler
,
breakpoint
)
}
}
}
mainVm
?.
debugListener
?.
childVmAdded
(
vm
)
}
}
@Suppress
(
"UNCHECKED_CAST"
)
class
LineBreakpointHandler
(
breakpointTypeClass
:
Class
<
out
XBreakpointType
<
out
XLineBreakpoint
<
*
>,
*
>>,
internal
val
manager
:
LineBreakpointManager
)
class
LineBreakpointHandler
(
breakpointTypeClass
:
Class
<
out
XBreakpointType
<
out
XLineBreakpoint
<
*
>,
*
>>,
val
manager
:
LineBreakpointManager
)
:
XBreakpointHandler
<
XLineBreakpoint
<
*
>>(
breakpointTypeClass
as
Class
<
out
XBreakpointType
<
XLineBreakpoint
<
*
>,
*
>>)
{
override
fun
registerBreakpoint
(
breakpoint
:
XLineBreakpoint
<
*
>)
{
manager
.
debugProcess
.
collectVMs
.
forEach
{
...
...
This diff is collapsed.
Click to expand it.
小 白蛋
@baidan
mentioned in commit
d07ea921
·
2 years ago
mentioned in commit
d07ea921
mentioned in commit d07ea921a78088f37d2d4163cacdc1de99da90c4
Toggle commit list
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