Fixed enable debugger on clicking debug button.

This commit is contained in:
A Pottinger
2020-03-08 11:02:18 -07:00
parent 926c4587d5
commit d126c70893
2 changed files with 4 additions and 1 deletions

View File

@@ -1360,6 +1360,8 @@ public class JavaEditor extends Editor {
}
getDebugger().dispose();
getPreprocessingService().dispose();
debugger = null;
preprocService = null;
inspect.dispose();
usage.dispose();
@@ -1862,6 +1864,7 @@ public class JavaEditor extends Editor {
public void toggleDebug() {
// debugEnabled = !debugEnabled;
getDebugger().toggleEnabled();
rebuildToolbar();
repaint(); // show/hide breakpoints in the gutter

View File

@@ -203,7 +203,7 @@ public class Debugger {
}
void toggleEnabled() {
public void toggleEnabled() {
enabled = !enabled;
if (enabled) {