mirror of
https://github.com/esp8266/Arduino.git
synced 2025-08-01 03:47:23 +03:00
Holding shift when pressing run or upload buttons give verbose output.
The upload.verbose and build.verbose preferences are still respected. You don't get verbose output with Command-Shift-R or Command-Shift-U, unlike Processing in which the shift modifier switches from Run to Present. Mostly this is because I didn't think verbose output deserved its own menu items, and that's how Processing implements the other shortcut. Holding shift while pressing upload doesn't show the compilation command lines. This matches the functionality of the upload.verbose preference, but may imply that the upload button doesn't also compile the code. Also, in Snow Leopard, the temp directory is in some crazy folder in /var. Luckily, everything still seems to work okay.
This commit is contained in:
@ -43,6 +43,7 @@ public class Compiler implements MessageConsumer {
|
||||
Sketch sketch;
|
||||
String buildPath;
|
||||
String primaryClassName;
|
||||
boolean verbose;
|
||||
|
||||
RunnerException exception;
|
||||
|
||||
@ -61,10 +62,12 @@ public class Compiler implements MessageConsumer {
|
||||
public boolean compile(Sketch sketch,
|
||||
String buildPath,
|
||||
String primaryClassName,
|
||||
Target target) throws RunnerException {
|
||||
Target target,
|
||||
boolean verbose) throws RunnerException {
|
||||
this.sketch = sketch;
|
||||
this.buildPath = buildPath;
|
||||
this.primaryClassName = primaryClassName;
|
||||
this.verbose = verbose;
|
||||
|
||||
// the pms object isn't used for anything but storage
|
||||
MessageStream pms = new MessageStream(this);
|
||||
@ -223,7 +226,7 @@ public class Compiler implements MessageConsumer {
|
||||
commandList.toArray(command);
|
||||
int result = 0;
|
||||
|
||||
if (Preferences.getBoolean("build.verbose")) {
|
||||
if (verbose || Preferences.getBoolean("build.verbose")) {
|
||||
for(int j = 0; j < command.length; j++) {
|
||||
System.out.print(command[j] + " ");
|
||||
}
|
||||
|
Reference in New Issue
Block a user