Skip to content

Commit

Permalink
Improve debugging experience
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefterv committed Dec 20, 2024
1 parent b7a4003 commit 2ee27a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions .idea/runConfigurations/Processing.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions app/src/processing/app/Base.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class Base {
* if an empty file named 'debug' is found in the settings folder.
* See implementation in createAndShowGUI().
*/
static public boolean DEBUG;
static public boolean DEBUG = System.getenv().containsKey("DEBUG");

/** True if running via Commander. */
static private boolean commandLine;
Expand Down Expand Up @@ -157,7 +157,7 @@ static public void main(final String[] args) {
}
Messages.showTrace("Unknown Problem",
"A serious error happened during startup. Please report:\n" +
"http://github.com/processing/processing/issues/new", t, true);
"http://github.com/processing/processing4/issues/new", t, true);
}
});
}
Expand Down Expand Up @@ -237,7 +237,7 @@ static private void createAndShowGUI(String[] args) {

// long t2 = System.currentTimeMillis();

if (!SingleInstance.alreadyRunning(args)) {
if (DEBUG || !SingleInstance.alreadyRunning(args)) {
// Set the look and feel before opening the window
try {
Platform.setLookAndFeel();
Expand Down
1 change: 0 additions & 1 deletion app/src/processing/app/ui/Start.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ class Start {
undecorated = true,
transparent = true,
resizable = false,
alwaysOnTop = true,
state = rememberWindowState(
position = WindowPosition(Alignment.Center),
size = DpSize(image.width.dp / 2 , image.height.dp / 2)
Expand Down

0 comments on commit 2ee27a8

Please sign in to comment.