PVUL / test

This is a repo for testing basic javascript similar to codepen, but in a local dev environment, all in VS Code IDE.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

test

This is a repo for testing basic javascript similar to codepen, but in a local dev environment, all in VS Code IDE.

Prerequisites

How to use

  1. Right click on index.html and Open with Live Server.
  2. On the Run and Debug tab of VS Code, select Launch Edge Headless and attach DevTools.
  3. Add your javascript to main.js and save. See changes automatically reload (thanks to Live Server) in the browser and console pane.

Debugging

The debugging environment is already setup. In order to debug, add a debugger breakpoint in the gutter of the editor window of VS Code (appears as a red dot on left side of line numbers), and during runtime execution it should pause at that breakpoint. Remove the breakpoint by toggling off the red dot on the given line number.

Add'l configs

  1. Dock the debug toolbar

If the floating toolbar is not your cup of tea, open the VS Code settings from File > Settings > Features > Debug > Tool Bar Location and set this value to docked.

  1. StatusBar Debugger (VS Code extension)

If you want additioanl debugger controls available to you in the status bar, check out this extension.

  1. Prevent browser from opening when starting Live Server

If you don't want the Edge Browser to open separately (since it's going to open an instance inside of VS Code anyway), go to File > Settings > Extensions > Live Server > Settings: No Browser and check the box. If checked it will start without browser opened.


Credits

About

This is a repo for testing basic javascript similar to codepen, but in a local dev environment, all in VS Code IDE.


Languages

Language:HTML 63.7%Language:JavaScript 27.5%Language:CSS 8.8%