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
964aa259
Commit
964aa259
authored
6 years ago
by
Egor Ushakov
Browse files
Options
Download
Email Patches
Plain Diff
disable service breakpoints in read only mode
parent
04166359
Branches unavailable
Tags unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/debugger/impl/src/com/intellij/debugger/engine/DebugProcessEvents.java
+8
-5
.../src/com/intellij/debugger/engine/DebugProcessEvents.java
with
8 additions
and
5 deletions
+8
-5
java/debugger/impl/src/com/intellij/debugger/engine/DebugProcessEvents.java
+
8
-
5
View file @
964aa259
...
...
@@ -325,7 +325,8 @@ public class DebugProcessEvents extends DebugProcessImpl {
LOG
.
assertTrue
(!
isAttached
());
if
(
myState
.
compareAndSet
(
State
.
INITIAL
,
State
.
ATTACHED
))
{
final
VirtualMachineProxyImpl
machineProxy
=
getVirtualMachineProxy
();
if
(
machineProxy
.
canBeModified
())
{
boolean
canBeModified
=
machineProxy
.
canBeModified
();
if
(
canBeModified
)
{
final
EventRequestManager
requestManager
=
machineProxy
.
eventRequestManager
();
if
(
machineProxy
.
canGetMethodReturnValues
())
{
...
...
@@ -359,8 +360,10 @@ public class DebugProcessEvents extends DebugProcessImpl {
myDebugProcessDispatcher
.
getMulticaster
().
processAttached
(
this
);
createStackCapturingBreakpoints
();
AsyncStacksUtils
.
setupAgent
(
this
);
if
(
canBeModified
)
{
createStackCapturingBreakpoints
();
AsyncStacksUtils
.
setupAgent
(
this
);
}
// breakpoints should be initialized after all processAttached listeners work
ApplicationManager
.
getApplication
().
runReadAction
(()
->
{
...
...
@@ -370,14 +373,14 @@ public class DebugProcessEvents extends DebugProcessImpl {
}
});
if
(
Registry
.
is
(
"debugger.track.instrumentation"
,
true
))
{
if
(
Registry
.
is
(
"debugger.track.instrumentation"
,
true
)
&&
canBeModified
)
{
trackClassRedefinitions
();
}
showStatusText
(
DebuggerBundle
.
message
(
"status.connected"
,
DebuggerUtilsImpl
.
getConnectionDisplayName
(
getConnection
())));
LOG
.
debug
(
"leave: processVMStartEvent()"
);
if
(!
machineProxy
.
canBeModified
()
)
{
if
(!
canBeModified
)
{
XDebugSessionImpl
session
=
(
XDebugSessionImpl
)
getSession
().
getXDebugSession
();
if
(
session
!=
null
)
{
session
.
setReadOnly
(
true
);
...
...
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