Skip to content

Using the VSCode debugger #172

Closed
Closed
@mshick

Description

@mshick
  • I'm submitting a ...
    [ ] bug report
    [x] feature request
    [ ] question about the decisions made in the repository
    [x] question about how to use this project

  • Summary

As a user of this generator, I would appreciate more handholding in learning how to properly debug a TypeScript application through your boilerplate functions in VSCode.

  • Other information

I've been struggling to understand how to properly use the VScode debugger with a vanilla TS application output from this project. By default the launch.json file doesn't seem to be set up to work with the boilerplate functions that are generated. I've spent some time trying to figure out what my program path should be, and still haven't managed to get a working debugger. I've been through a number of tutorials, and can do some simple debugging with breakpoints in a plain JS app. Key questions are:

  1. What should program be set to if I'm trying to set a breakpoint in the asyncABC function?
  2. How should I invoke that function to get debugger output at my breakpoint?
  3. What is the Debug Spec profile supposed to do? Debug the tests themselves?

I do realize some of these questions are due to my lack of familiarity, but I've found this project very helpful in learning TS so I see value in helping new users understand the debugger.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions