Skip to content

Visual Studio debugger breakes from adding When to WebPack bundle. #486

@henrify

Description

@henrify

If I create a CommonJS compatible bundle using WebPack and include 'When' library in the bundle, then debugging in Visual Studio (2013 and 2015) brakes:

  • Brakepoints are not hit
  • Warning 'The breakpoint will not currently be hit. No symbols have been loaded for this document' is displayed next to breakpoints.

Additional info:

  • If I don't include When to the bundle, but keep everything else exactly same, then debugger works fine.
  • If I create the bundle using Browserify instead of WebPack, then debugger works fine.
  • If I include another library of comparable size instead of 'When', then debugger works fine.

Please find attached Visual Studio solution for repro.

After running commands 'npm install' and 'webpack', you can debug this just fine in Visual Studio. If you remove the comments from the six lines that include 'When' to the bundle and run 'webpack' again, then Visual Studio debugging brakes.

I'm not sure if this is WebPack or When issue or bit of both, so crossposting.

WebpackWhenSourcemapTest.zip

when and webpack brake debugging
debugging works if when is commented out

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions