CSCI 201 Google Chrome DevTools

Similar documents
MEDIA COMPUTATION DRJAVA. Lecture 11.3 November 7, 2008

Client-side Debugging. Gary Bettencourt

A340 Laboratory Session #5

Graphic Selenium Testing Tool

News in RSA-RTE 10.2 updated for sprint Mattias Mohlin, May 2018

Unveiling Zend Studio 8.0

,

Web browsers - Firefox

Using Eclipse for Java. Using Eclipse for Java 1 / 1

LabWare 7. Why LabWare 7?

How to Install (then Test) the NetBeans Bundle

INTRODUCTION TO JAVASCRIPT

Brief Intro to Firebug Sukwon Oh CSC309, Summer 2015

TIBCO LiveView Web Getting Started Guide

1 Introduction to MARS

Applying for Jobs by

News in RSA-RTE 10.2 updated for sprint Mattias Mohlin, January 2018

6.170 Laboratory in Software Engineering Java Style Guide. Overview. Descriptive names. Consistent indentation and spacing. Page 1 of 5.

Mend for Eclipse quick start guide local analysis

Section 1. How to use Brackets to develop JavaScript applications

Using Smart Tools to Write Good Code

Components in Joomla. Instructor for this Workshop. Web Development. School of Arts and Sciences

CS Multimedia and Communications REMEMBER TO BRING YOUR MEMORY STICK TO EVERY LAB!

Using Development Tools to Examine Webpages

(try adding using css to add some space between the bottom of the art div and the reset button, this can be done using Margins)

Halcyon Message Sender GUI. v6.0 User Guide

FEATURE INDEX TAB MIX PLUS: LINKS... 3 TAB MIX PLUS: EVENTS TAB OPENING... 4 TAB MIX PLUS: EVENTS TAB FOCUS... 5

CSCI 201 Lab 1 Environment Setup

Adobe Marketing Cloud Best Practices Implementing Adobe Target using Dynamic Tag Management

TIBCO LiveView Web Getting Started Guide

TYPO3 Editing Guide Contents

SCRIPT REFERENCE. UBot Studio Version 4. The UI Commands

Indium Documentation. Release Nicolas Petton

CSCI 161: Introduction to Programming I Lab 1b: Hello, World (Eclipse, Java)

Import Web Pages with MAXQDA Web Collector

Web API Lab folder 07_webApi : webapi.jsp your testapijs.html testapijq.html that works functionally the same as the page testapidomjs.

Getting Started with Eclipse/Java

Site Owners: Cascade Basics. May 2017

The Structure of the Web. Jim and Matthew

Course Folder and Files Instructions for download and use

Lab 1: Getting Started with IBM Worklight Lab Exercise

Web API Lab. The next two deliverables you shall write yourself.

OU Mashup V2. Display Page

DOMAIN TECHNOLOGIES. Getting Started Guide Version 1.1. BoxView IDE. Integrated Development Environment

Displaying ndtv Graphics in Spotfire using TERR and JSViz

Installing VS Code. Instructions for the Window OS.

Adobe ColdFusion Documentation. September 2014

AngularJS Intro Homework

PAGE TITLE KEYBOARD SHORTCUTS

GETTING STARTED WITH ECLIPSE Caitrin Armstrong

Using AJAX to Easily Integrate Rich Media Elements

GRITS AJAX & GWT. Trey Roby. GRITS 5/14/09 Roby - 1

Vertisee Help Interface and Tools VERTISEE HELP. Interface and Tools. McElhanney Consulting Services Ltd Page 1

Liferay IDE Installation and Development on Windows

Design Importer User Guide

Instructor s Notes Web Data Management Web Client/Server Concepts. Web Data Management Web Client/Server Concepts

Read Now In-Browser Reader Guide

Modules in Joomla. Instructor for this Workshop Laura Gordon. Web Development. School of Arts and Sciences

Working with JavaScript

Browser Settings. Updated 4/30/ SSF

Lab 2 Examine More Development Features in IBM Worklight

Eclipse Environment Setup

IBM LOT-408. IBM Notes and Domino 9.0 Social Edition Application Development Updat.

MarkLogic Server. Query Console User Guide. MarkLogic 9 May, Copyright 2017 MarkLogic Corporation. All rights reserved.

Squiz Matrix User Manual Library

MarkLogic Server. Query Console User Guide. MarkLogic 9 May, Copyright 2018 MarkLogic Corporation. All rights reserved.

Inline HTML Editor does not load preventing typing in text field

Instructions for downloading paid media from BSO.org and playing paid media in the BSO Media Center Revised as of 12/23/2011

OU EDUCATE TRAINING MANUAL

Creating a Recording in Canvas Embedding a Recording in Canvas To embed a recording into a discussion

A. Outlook Web App -

Code Editor. The Code Editor is made up of the following areas: Toolbar. Editable Area Output Panel Status Bar Outline. Toolbar

N/A. JSN PageBuilder 2 Configuration Manual Introduction. System Requirements. Product Usage. Joomla Requirements. Server Requirement

CS 130(0) JavaScript Lab

Jigsaw Troubleshooting Tips

Visualforce & Lightning Experience

Step 4 Part F - How to Download a Video on YouTube and Delete a Video

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2) What is JavaScript?

Getting Started (1.8.7) 9/2/2009

Client Side JavaScript and AJAX

WELCOME TO GOOGLE DRIVE!

Selenium Web Test Tool Training Using Ruby Language

Mouse Navigation. Middle Button (wheel) Pan. Click + Drag. Re-Center View. Double-Click. Context Menu. Tool Operation. Click. Click. Multi-Select.

Columbia University Open-Source Risk Engine

Create the Left Navigation SSI Quick Guide

Google Apps Basics Mail

Copyright 2018 MakeUseOf. All Rights Reserved.

Java Scrapbook Pages by Julian Robichaux, panagenda originally published on socialbizug.org, September 2013

1. Setup a root folder for the website 2. Create a wireframe 3. Add content 4. Create hyperlinks between pages and to external websites

Configurator 360 Hands-On Lab

Project 3 CIS 408 Internet Computing

Writing your first Web Data Connector

The Preparing for Success Online Mapping Tool

Customizing the Blackboard Learn UI & Tag Libraries. George Kroner, Developer Relations Engineer

Preface 7. 1 Introduction to OpenUI5 9

Offline-first PWA con Firebase y Vue.js

Create-A-Page Design Documentation

Debugging and testing

Fish Eye Menu DMXzone.com Fish Eye Menu Manual

JSN PageBuilder 2 User Manual

Transcription:

CSCI 201 Google Chrome DevTools This semester, our Factory code and assignments are written for use in Google Chrome. We will be taking advantage of Google Chrome DevTools, an assortment of web development inspection tools. https://developer.chrome.com/devtools https://www.youtube.com/watch?v=wcfnnxfa70g https://www.youtube.com/watch?v=uurzfzk92bu#t=2366.103732 If you have any suggestions for additions to this document, please e-mail hgil@usc.edu Console (Debugging with print statements) System.out.print( ) is a Java function. It can only be used in Java classes and will only print to the Eclipse console. Console.log( ) is a JavaScript function. It can only be used in JavaScript/HTML files and will print to Google Chrome s console. You should use console.log( ) to debug web elements just as you would use System.out.print( ) to debug Java. You may see console.log( ) in use by uncommenting console.log(msg); in WebSocketEndpoint.js, going to your Chrome browser > Right-click > Inspect > Console.

Data from Factory simulation received as JSON objects Refreshing (keeping your browser up-to-date) In order to optimize the startup time of your web application, Google Chrome automatically caches your server items and only reloads them every 10 minutes. In development, we want to see our changes in real-time. Disable caching by going to the Network tab of DevTools and checking Disable Cache Note: the cache is only disabled when you have DevTools open. If you don t have this view open you won t immediately see your changes. If you still aren t seeing your changes, do a force refresh: Windows/Linux: Control + F5 Mac: Command+Shift+R To refresh your application in Eclipse, click here

Debugging your application Often times it will seem that your browser is not up-to-date, e.g. an image is not showing up. Navigate to the Source tab of DevTools. On the left you will see all of the files that the browser received from the WebContent folder. In the middle you can see a particular file (and verify that the code is up-to-date). On the right you will see a debugger. This is where you should check that your file is on your server. If any of your files are not here, and you have done the steps from Refreshing, it is likely that you have mistakes in your code. Check the console for any helpful errors. o o Image not appearing Make sure the image is in WebContent/img and spelled exactly the same everywhere In Eclipse, right-click your project > Refresh JavaScript/CSS file not appearing Make sure you linked the file in the <head> of your HTML file

Debugging UI elements <script src="js/file_to_add.js" type="text/javascript"></script> The Elements tab is a useful interface for debugging your HTML and CSS. Click the top-left arrow to select an element in the page to inspect it. Mouse over anything in the page to highlight it and see its corresponding code. On the left, you see the element that you have moused-over in your HTML code. In the middle, you see your HTML code with drop-downs containing the elements nested inside. On the right, you see all applicable CSS, computed element sizes, and JavaScript events. Navigating to the line where factory-slider is created will highlight the element

Toggle specific CSS rules by unchecking/checking them. A strikethrough means that this rule has been overwritten by its children and it is not the actual CSS that is being displayed. You may also edit the HTML content directly. Synching your DevTools files with your project

A very cool feature is the ability to map your project to DevTools so that any changes when you make while in DevTools persist when you save! For example, it is much easier to edit CSS in DevTools and see your changes live than having to edit it in a text editor, save and then refresh your browser. The instructions to do this are at 19:15 of this video: https://www.youtube.com/watch?v=uurzfzk92bu#t=2366.103732