mirror of
https://github.com/processing/processing4.git
synced 2026-02-02 21:29:17 +01:00
Fixed enable debugger on clicking debug button.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -203,7 +203,7 @@ public class Debugger {
|
||||
}
|
||||
|
||||
|
||||
void toggleEnabled() {
|
||||
public void toggleEnabled() {
|
||||
enabled = !enabled;
|
||||
|
||||
if (enabled) {
|
||||
|
||||
Reference in New Issue
Block a user