mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-71546 Add registry flag for enabling debugger diagnostic prints
GitOrigin-RevId: 27347f89d702def97c95a1c6c782a63f66351a2d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c21fc55eb5
commit
18529bef9b
@@ -97,6 +97,7 @@ public class PyDebugRunner implements ProgramRunner<RunnerSettings> {
|
||||
public static final @NonNls String PYDEVD_FILTERS = "PYDEVD_FILTERS";
|
||||
public static final @NonNls String PYDEVD_FILTER_LIBRARIES = "PYDEVD_FILTER_LIBRARIES";
|
||||
public static final @NonNls String PYDEVD_USE_CYTHON = "PYDEVD_USE_CYTHON";
|
||||
public static final @NonNls String PYCHARM_DEBUG = "PYCHARM_DEBUG";
|
||||
public static final @NonNls String USE_LOW_IMPACT_MONITORING = "USE_LOW_IMPACT_MONITORING";
|
||||
public static final @NonNls String CYTHON_EXTENSIONS_DIR = new File(PathManager.getSystemPath(), "cythonExtensions").toString();
|
||||
|
||||
@@ -688,6 +689,10 @@ public class PyDebugRunner implements ProgramRunner<RunnerSettings> {
|
||||
if (!RegistryManager.getInstance().is("python.debug.enable.cython.speedups")) {
|
||||
environmentController.putFixedValue(PYDEVD_USE_CYTHON, "NO");
|
||||
}
|
||||
|
||||
if (RegistryManager.getInstance().is("python.debug.enable.diagnostic.prints")) {
|
||||
environmentController.putFixedValue(PYCHARM_DEBUG, "True");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -412,6 +412,9 @@
|
||||
<registryKey defaultValue="true" description="Enables the Python debugger Cython speed-ups" restartRequired="false"
|
||||
key="python.debug.enable.cython.speedups"/>
|
||||
|
||||
<registryKey defaultValue="false" description="Enables the Python debugger diagnostic prints" restartRequired="false"
|
||||
key="python.debug.enable.diagnostic.prints"/>
|
||||
|
||||
<!-- typing -->
|
||||
<multiHostInjector implementation="com.jetbrains.python.codeInsight.typing.PyTypingAnnotationInjector"/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user