Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Commit 9ca1a91

Browse files
author
sebba
committed
2 parents b7eddc4 + d916b7e commit 9ca1a91

34 files changed

+1131
-20
lines changed

arduino-object-naming.int

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
"arduino-event-serialmonitor-hide" : close the panel with the serial monitor.
2828
"arduino-event-serialmonitor" : open close the panel with the serial monitor.
2929

30+
"arduino-event-debug" : open close the debug window
31+
"arduino-event-debug-show" : open the panel with the debug windows
32+
"arduino-event-debug-hide" : close the panel with the debug windows
33+
3034
"arduino-event-menu-tool-preferences" : open the modal window for the user's preferences.
3135

3236
##########

examples/01.Basics/Blink/Blink.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
1010
This example code is in the public domain.
1111
12-
modified 8 May 2014
12+
modified 8 May 2014
1313
by Scott Fitzgerald
1414
*/
1515

@@ -23,7 +23,7 @@ void setup() {
2323
// the loop function runs over and over again forever
2424
void loop() {
2525
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
26-
delay(1000); // wait for a second
26+
delay(100); // wait for a second
2727
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
28-
delay(1000); // wait for a second
28+
delay(100); // wait for a second
2929
}

main.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ define(function (require, exports, module) {
5353
copypasteDomainName = "org-arduino-ide-domain-copypaste",
5454
compilerDomainName = "org-arduino-ide-domain-compiler",
5555
osDomainName = "org-arduino-ide-domain-os",
56-
driverDomainName = "org-arduino-ide-domain-driver";
56+
driverDomainName = "org-arduino-ide-domain-driver",
57+
debugDomainName = "org-arduino-ide-domain-debug";
5758

5859

5960

@@ -95,6 +96,7 @@ define(function (require, exports, module) {
9596
brackets.arduino.domains[compilerDomainName] = new NodeDomain( compilerDomainName, ExtensionUtils.getModulePath(module, "node/compiler"));
9697
brackets.arduino.domains[osDomainName] = new NodeDomain( osDomainName, ExtensionUtils.getModulePath(module, "node/os"));
9798
brackets.arduino.domains[driverDomainName] = new NodeDomain( driverDomainName, ExtensionUtils.getModulePath(module, "node/driver"));
99+
brackets.arduino.domains[debugDomainName] = new NodeDomain( debugDomainName, ExtensionUtils.getModulePath(module, "node/debugger"));
98100

99101
//TODO complete with others platform path: core, user lib, sketchbook...
100102
brackets.arduino.options.rootdir = FileSystem.getDirectoryForPath( FileUtils.getNativeModuleDirectoryPath(module));
@@ -130,12 +132,14 @@ define(function (require, exports, module) {
130132
var Console = require("modules/Console/main");
131133
var Menu = require("modules/Menu/main");
132134
var Compiler = require("modules/Compiler/main");
135+
var Debug = require("modules/Debug/main");
133136

134137
var serialmonitor = new SerialMonitor();
135138
var discovery = new Discovery();
136139
var console = new Console();
137140
var menu = new Menu();
138141
var compiler = new Compiler();
142+
var debug = new Debug();
139143

140144
ExtensionUtils.loadStyleSheet(module, "main.css");
141145

@@ -147,10 +151,10 @@ define(function (require, exports, module) {
147151

148152
arduinoHints = require("modules/Hints/main");
149153

150-
if(brackets.arduino.preferences.get("arduino.ide.preferences.checkupdate")) {
154+
/*if(brackets.arduino.preferences.get("arduino.ide.preferences.checkupdate")) {
151155
var chk = require("modules/Extra/checkupdate");
152156
chk.checkLatest(brackets.arduino.revision.version);
153-
}
157+
}*/
154158

155159
// Main-Toolbar Buttons
156160
arduinoToolbar = require("modules/Toolbar/main");

modules/Debug/css/Debug.css

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
/* commento inserito per comodità */
2+
#debug {
3+
min-height: 380px;
4+
height: 99%;
5+
max-height: 380px;
6+
padding-top: 0px;
7+
display: block;
8+
border: 9px solid #c4a97f;
9+
padding-left: 0px;
10+
background-color: #ffffff;
11+
padding-left: 16px;
12+
overflow-y: scroll;
13+
overflow-x: hidden;
14+
}
15+
16+
#debugOptions {
17+
margin-top: 10px;
18+
margin-bottom: 10px;
19+
margin-left: 7px;
20+
}
21+
22+
#debug_log {
23+
width: 96%;
24+
min-height: 220px;
25+
max-height: 220px;
26+
overflow-y: scroll !important;
27+
margin-left: 7px;
28+
background-color: #ffffff;
29+
padding-top: 0px;
30+
border: 1px solid #b2b5b5;
31+
32+
-moz-user-select: text;
33+
-khtml-user-select: text;
34+
-webkit-user-select: text;
35+
-ms-user-select: text;
36+
user-select: text;
37+
}
38+
39+
.debug_label {
40+
color: #17a0a4;
41+
margin-left: 7px;
42+
}
43+
44+
45+
46+
47+
48+
a#haltsketchDebug_button {
49+
background: url('halt.png') center no-repeat;
50+
cursor:pointer;
51+
width: 35px;
52+
height: 35px;
53+
padding: 0px;
54+
/*margin-left: 5px;*/
55+
background-size: 35px;
56+
}
57+
a#haltsketchDebug_button:hover {
58+
background: url('halt_over.png') center no-repeat;
59+
background-size: 35px;
60+
}
61+
62+
a#restartsketchDebug_button {
63+
background: url('restart.png') center no-repeat;
64+
cursor:pointer;
65+
width: 35px;
66+
height: 35px;
67+
padding: 0px;
68+
/*margin-left: 5px;*/
69+
background-size: 35px;
70+
}
71+
a#restartsketchDebug_button:hover {
72+
background: url('restart_over.png') center no-repeat;
73+
background-size: 35px;
74+
}
75+
76+
a#continuesketchDebug_button {
77+
background: url('continue.png') center no-repeat;
78+
cursor:pointer;
79+
width: 35px;
80+
height: 35px;
81+
padding: 0px;
82+
/*margin-left: 5px;*/
83+
background-size: 35px;
84+
}
85+
a#continuesketchDebug_button:hover {
86+
background: url('continue_over.png') center no-repeat;
87+
background-size: 35px;
88+
}
89+
90+
a#stepsketchDebug_button {
91+
background: url('step.png') center no-repeat;
92+
cursor:pointer;
93+
width: 35px;
94+
height: 35px;
95+
padding: 0px;
96+
/*margin-left: 5px;*/
97+
background-size: 35px;
98+
}
99+
a#stepsketchDebug_button:hover {
100+
background: url('step_over.png') center no-repeat;
101+
background-size: 35px;
102+
}
103+
104+
a#showfunctionDebug_button {
105+
background: url('showfunction.png') center no-repeat;
106+
cursor:pointer;
107+
width: 35px;
108+
height: 35px;
109+
padding: 0px;
110+
/*margin-left: 5px;*/
111+
background-size: 35px;
112+
}
113+
a#showfunctionDebug_button:hover {
114+
background: url('showfunction_over.png') center no-repeat;
115+
background-size: 35px;
116+
}
117+
118+
a#showbreakpointDebug_button {
119+
background: url('showbreakpoint.png') center no-repeat;
120+
cursor:pointer;
121+
width: 35px;
122+
height: 35px;
123+
padding: 0px;
124+
/*margin-left: 5px;*/
125+
background-size: 35px;
126+
}
127+
a#showbreakpointDebug_button:hover {
128+
background: url('showbreakpoint_over.png') center no-repeat;
129+
background-size: 35px;
130+
}
131+
132+
a#setbreakpointDebug_button {
133+
background: url('setbreakpoint.png') center no-repeat;
134+
cursor:pointer;
135+
width: 35px;
136+
height: 35px;
137+
padding: 0px;
138+
/*margin-left: 5px;*/
139+
background-size: 35px;
140+
}
141+
a#setbreakpointDebug_button:hover {
142+
background: url('setbreakpoint_over.png') center no-repeat;
143+
background-size: 35px;
144+
}
145+
146+
a#showvalueDebug_button {
147+
background: url('showvalue.png') center no-repeat;
148+
cursor:pointer;
149+
width: 35px;
150+
height: 35px;
151+
padding: 0px;
152+
/*margin-left: 5px;*/
153+
background-size: 35px;
154+
}
155+
a#showvalueDebug_button:hover {
156+
background: url('showvalue_over.png') center no-repeat;
157+
background-size: 35px;
158+
}
159+
160+
.arduino-breakpoint .CodeMirror-linenumber {
161+
//background-color: #c4a97f !important;
162+
color: #000 !important;
163+
border-radius: 2px !important;
164+
background-image: url("breakpoint.png");
165+
background-repeat: no-repeat;
166+
background-position: center;
167+
background-size: 17px 17px;
168+
}

modules/Debug/css/breakpoint.png

3.14 KB
Loading

modules/Debug/css/continue.png

1.27 KB
Loading

modules/Debug/css/continue_over.png

1.25 KB
Loading

modules/Debug/css/halt.png

1.15 KB
Loading

modules/Debug/css/halt_over.png

1.14 KB
Loading

modules/Debug/css/restart.png

1.57 KB
Loading

0 commit comments

Comments
 (0)