Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome debugger doesn't step through code properly #480

Closed
mercmobily opened this issue Sep 8, 2018 · 4 comments
Closed

Chrome debugger doesn't step through code properly #480

mercmobily opened this issue Sep 8, 2018 · 4 comments

Comments

@mercmobily
Copy link

I am studying lit-html. I read the code, read how it all works, and am trying to figure out what does what and where.
One of my best weapons normally is the Chrome debugger. I intended to create a template, render it, and understand exactly what happened by stepping through the code.
The problem is that Chrome (I am using 69) doesn't seem to allow me to do that. When I hover on variable names, the debugger seems to think that "fragment" is "ragment". Try and step into this code and see what I mean:

import { html, render } from 'lit-html'

var name = 'Tony'
var r = html`<h1 .value="${name}" href="${name}">Hello ${name} and again ${name}</h1>`
var r1 = render(r, document.body)
console.log(r, r1)

You basically.. .can't. Is there a trick, or anything, to make stepping through work?
I am also worried I won't be able to step through code to debug a real-life project..

@LarsDenBakker
Copy link
Contributor

How are you serving the project to the browser? Are you running it all natively as a module, or through some build step?

@mercmobily
Copy link
Author

Ah, it happens when I use Polymer Serve. If I use a straight web server with no building/manipulation what so ever) there is no weirdness!
Here is an example of what I am seeing with polymer serve:

image

@web-padawan
Copy link
Contributor

Duplicate of Polymer/tools#389

@mercmobily
Copy link
Author

Apologies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants