Skip to content

Add Source-Maps #1255

Closed
Closed

Description

@mmakrzem

Stencil version:

I'm submitting a:

[] bug report
[X] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior:
I'm using the stencil starter project found here (https://github.com/ionic-team/stencil-component-starter) and I would like to debug the code in visual studio code. The following configuration lets me launch chrome from within visual studio code:

"configurations": [
 {
  "type": "chrome",
  "request": "launch",
  "name": "Launch Chrome against localhost",
  "url": "http://localhost:3333",
  "sourceMaps": true,
  "webRoot": "${workspaceFolder}/www"
 }
]

Expected behavior:
When I place a breakpoint in visual studio code, I expect execution to stop there. This doesn't happen. Instead I get a warning saying 'unverified breakpoint' for all the breakpoints I place in the code.

Activity

  1. Dohxis commented on Dec 1, 2018

    @Dohxis

    I have the same problem

  2. tricki commented on Dec 7, 2018

    @tricki
    Contributor

    See my answer on StackOverflow, specifically the part about source maps:

    But since Stencil does not generate source maps yet you will only be able to debug the compiled code.
    Source: #219

    My method for finding the correct generated file is to just add a debugger; statement so that VS Code will automatically break.

  3. ggretz commented on Feb 13, 2019

    @ggretz

    any update on this? is it maybe also possible to debug unit tests / e2e tests?
    edit: after playing around with some settings, i found out how to debug tests. It even maps the ts code correctly. Here is my configuration:

    {
    	"type": "node",
    	"request": "launch",
    	"name": "Test",
    	"program": "${workspaceFolder}/node_modules/@stencil/core/bin/stencil",
    	"args": [
    		"test",
    		"--spec",
    		"--e2e",
    		"--runInBand"
    	],
    	"console": "integratedTerminal",
    	"internalConsoleOptions": "neverOpen",
    	"disableOptimisticBPs": true
    }
    
  4. jthoms1 commented on Apr 30, 2019

    @jthoms1
    Contributor

    Sourcemaps are something we plan to add to the roadmap. I will leave this issue open as the reference for implementing them.

  5. changed the title [-]Can not debug stencil project in Visual Studio Code[/-] [+]Add Source-Maps[/+] on Apr 30, 2019
  6. added
    ionitron: stale issue
    on May 30, 2019
  7. ionitron-bot commented on May 30, 2019

    @ionitron-bot
  8. locked and limited conversation to collaborators on May 30, 2019
  9. unlocked this conversation on May 30, 2019
  10. removed
    ionitron: stale issue
    on May 30, 2019
  11. tehdb commented on Jun 18, 2019

    @tehdb

    still no source-maps? 😭

  12. leoafarias commented on Jun 18, 2019

    @leoafarias

    Just a bump for this.. seems like an important feature

  13. added
    ionitron: stale issue
    on Jul 18, 2019
  14. ionitron-bot commented on Jul 18, 2019

    @ionitron-bot

    Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Stencil, please create a new issue and ensure the template is fully filled out.

    Thank you for using Stencil!

  15. locked and limited conversation to collaborators on Jul 18, 2019
  16. splitinfinities commented on Oct 12, 2021

    @splitinfinities
    Contributor
  17. added and removed
    ionitron: stale issue
    on Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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