Skip to content

Allow easy toggling between sourcemaps and compiled code in js-debug #151412

@connor4312

Description

@connor4312

@jrieken wanted the ability to easily disable sourcemaps in js-debug, and mentioned @alexdima and @bpasero also like debugging without sourcemaps. However, changing this in the launch config via sourceMap: true/false is burdensome and makes the decision for the whole team, where it should be a user choice.

He suggested a some button (an editor action? is that too prominent?) to toggle sourcemaps on off.

  • The button should remember its state in the workspace between reloads
  • Breakpoints should always be allowed to be set in the source code, but appear in (be moved to, since BPs can only appear in one location) the compiled code when sourcemaps are disabled, and should show in the source code otherwise.
    • Therefore in this mode, we don't fully "disable sourcemaps", more just control where the debugger steps in
    • However we can optimize some things and be extra-lazy about parsing sourcemaps when "disabled"

Metadata

Metadata

Assignees

Labels

debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityon-testplan

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions