News

New JavaScript Debugger Now Default in VS Code 1.47 (June 2020 Release)

Oft-cited No. 1 development tool Visual Studio Code has a new debugger for the oft-cited No. 1 programming language, JavaScript.

Having been offered in preview versions of Microsoft's popular open source, cross-platform code editor for months -- and as the default in last month's Insiders build -- it's now enabled by default in the June 2020 release (version 1.47), working with Node.js and Chrome.

The debugger's GitHub site lists "what's new" including:

  • Debug child process and workers
  • Debug Node.js processes in the terminal
  • Profiling support
  • Easy npm script debugging
  • Automatic browser debugging
  • Instrumentation breakpoints
  • Better autocompletion in debug console
  • Return value interception
  • Top-Level await
  • Pretty-print minified sources
  • Support for Microsoft Edge and WebView2
  • Better sourcemap and breakpoint behavior
  • Copy values in call stack view

Furthermore, this week's post announcing VS Code 1.47 lists:

  • Single file debugging: This provides functionality found in other debug extensions, with new icons in the title area indicating debugging can be kicked off with a button click.
  • If one or both of these icons show up on the left-hand side of the editor's title area, then running or debugging the file in the editor is just one click away.
    [Click on image for larger view.] If one or both of these icons show up on the left-hand side of the editor's title area, then running or debugging the file in the editor is just one click away. (source: Microsoft).
  • Less cluttered CALL STACK view: This is achieved by hiding debug session nodes that exist for technical reasons, but do not provide much value to users.
  • New command alias Set Next Statement for Jump to Cursor: To make the command Jump to Cursor more discoverable for users coming from Visual Studio, the dev team added the command alias Set Next Statement.
  • Breakpoint Path on Hover: In the BREAKPOINTS view, hovering over a source breakpoint shows its absolute path.

Besides all that JavaScript debugging goodness, the June 2020 release of VS Code sees:

  • Accessibility improvements -- New screen reader capabilities: "Screen readers can now update the cursor offset in the editor. As a result, the screen reader 'Say All' command should work better when stopped and resumed."
  • Windows ARM builds -- Windows on ARM is now available in stable: This is pretty self-explanatory, and you can read more about it this GitHub issue and this Reddit conversation.
  • Source Control unified view -- All repositories displayed in a single view: Developers can now get a better overview of the entire workspace status. Also, devs can now move the Source Control view to the panel and move other views to the Source Control view container.
    All repositories are rendered in a single view to provide a better overview of the entire workspace status.
    [Click on image for larger view.] All repositories are rendered in a single view to provide a better overview of the entire workspace status. (source: Microsoft).
  • View and sort pending changes -- View files as a tree or list, sort by name, path, or status: Developers can sort changes in the source control view by name, path (default), and state with the list view option. The view options (list vs. tree) and sort options are consolidated into a new View & Sort menu item available in the context menu.
  • Edit complex settings -- Edit object settings from the Settings editor: "Before, the Settings editor could only be used to edit the settings of primitive types, like strings and booleans, and you needed to edit settings.json directly for more complicated settings types. Now, you can edit non-nested object settings from the Settings editor. Extension authors can use this functionality to increase the visibility of these kinds of settings."
  • New HexEditor extension -- Edit files in hexadecimal format from within VS Code: This functionality, providing for native hexadecimal editing in the editor, sees continued improvement including the ability to undo, redo, edit existing hex cells, add new cells to the end of the document), and large file optimization such that developers can now open files larger than 18 MB.
  • Notebook UI updates -- Improved UX and undo/redo support: Still in preview, a GitHub Issue Notebooks extension helps developers search GitHub issues and pull requests.
  • Remote Development tutorials -- Learn to develop over SSH, inside Containers, and in WSL: Specifically, these are:

    Other Remote Development functionality includes:

    • Remote -- SSH: Remote server can listen on a socket instead of a port.
    • Remote -- Containers: Prompt to open repository in a volume.
    • Remote -- Containers and WSL: More details are available in this WSL 2 blog post.
  • Java Pack Installer for macOS -- This sets developers up to develop in Java with VS Code on macOS: A new Visual Studio Code for Java Pack Installer (note: clicking on link may initiate download) automates the acquisition of dependencies and extensions for Java development on macOS. This was announced in last month's update to Java on Visual Studio Code.

All of the above and more is presented in greater detail in the announcement post.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube