mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
[rd debugger] IJPL-219714 Fix dependencies before classes move
GitOrigin-RevId: bb57908fea272e6d7df28570211c7b008be5f4f0
This commit is contained in:
committed by
intellij-monorepo-bot
parent
417aa0b847
commit
8b4badadb1
+1
-1
@@ -98,7 +98,7 @@ internal class BackendJavaDebuggerSessionApi : JavaDebuggerSessionApi {
|
||||
|
||||
for (javaValue in javaValues) {
|
||||
withDebugContext(javaValue.evaluationContext.suspendContext) {
|
||||
javaValue.setRenderer(renderer, null)
|
||||
javaValue.setRenderer(renderer)
|
||||
}
|
||||
}
|
||||
for (xValueModel in xValueModels) {
|
||||
|
||||
@@ -7,6 +7,7 @@ import com.intellij.debugger.engine.JavaValue
|
||||
import com.intellij.debugger.impl.DebuggerContextImpl
|
||||
import com.intellij.debugger.ui.impl.watch.ValueDescriptorImpl
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent
|
||||
import com.intellij.openapi.util.registry.Registry
|
||||
import com.intellij.platform.debugger.impl.shared.proxy.XDebugSessionProxy
|
||||
import com.intellij.platform.debugger.impl.ui.XDebuggerEntityConverter
|
||||
import com.intellij.xdebugger.frame.XValue
|
||||
@@ -15,6 +16,11 @@ import org.jetbrains.annotations.ApiStatus
|
||||
|
||||
@ApiStatus.Internal
|
||||
object JvmDebuggerUtils {
|
||||
@JvmStatic
|
||||
fun isBreakpointInstrumentationSwitchedOn(): Boolean {
|
||||
return Registry.`is`("debugger.breakpoint.instrumentation")
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun findProxyFromContext(debuggerContext: DebuggerContextImpl): XDebugSessionProxy? {
|
||||
val session = debuggerContext.debuggerSession?.xDebugSession ?: return null
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.debugger.engine
|
||||
|
||||
import com.intellij.debugger.JvmDebuggerUtils
|
||||
import com.intellij.debugger.engine.events.SuspendContextCommandImpl
|
||||
import com.intellij.debugger.impl.DebuggerContextImpl
|
||||
import com.intellij.debugger.impl.DebuggerUtilsAsync
|
||||
@@ -150,7 +151,7 @@ private suspend fun <R> tryToBreakOnAnyMethodAndEvaluate(
|
||||
|
||||
@ApiStatus.Internal
|
||||
fun <Self : XBreakpoint<P>, P : XBreakpointProperties<*>, S : BreakpointState> shouldInstrumentBreakpoint(xB: XBreakpointBase<Self, P, S>): Boolean {
|
||||
if (!XBreakpointUtil.isBreakpointInstrumentationSwitchedOn()) {
|
||||
if (!JvmDebuggerUtils.isBreakpointInstrumentationSwitchedOn()) {
|
||||
return false
|
||||
}
|
||||
if (xB.isLogMessage || xB.isLogStack) return false
|
||||
|
||||
@@ -720,6 +720,11 @@ public class JavaValue extends XNamedValue implements NodeDescriptorProvider, XV
|
||||
};
|
||||
}
|
||||
|
||||
@ApiStatus.Internal
|
||||
public void setRenderer(NodeRenderer nodeRenderer) {
|
||||
setRenderer(nodeRenderer, null);
|
||||
}
|
||||
|
||||
public void setRenderer(NodeRenderer nodeRenderer, @Nullable final XValueNodeImpl node) {
|
||||
DebuggerManagerThreadImpl.assertIsManagerThread();
|
||||
myValueDescriptor.setRenderer(nodeRenderer);
|
||||
|
||||
Reference in New Issue
Block a user