-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathdebugging.Rmd
More file actions
28 lines (15 loc) · 792 Bytes
/
Copy pathdebugging.Rmd
File metadata and controls
28 lines (15 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# General Advice <i class="fa fa-bug"></i>
## Debugging Tips
* Make extensive use of Elements to see what's being added to the DOM.
* Make extensive use of Console to check the values of variables and/or test code.
* Pay attention to errors in the Console.
* Use `console.log()` esp. in functions
* Post Minimal Working Examples on Ed Discussion in Canvas. See:
["How to create a Minimal, Complete, and Verifiable example"](https://stackoverflow.com/help/mcve){target="_blank"}
(But don't worry if it's not perfect, we're not going to judge.)
* Use a text editor that helps you identify unmatched () {} [].
Have a tip? Click the <i class="fas fa-edit"></i>
button, add the tip, and create a pull request.
## Other
* Save working versions!
* Pay attention to the order