-
Notifications
You must be signed in to change notification settings - Fork 19
Enable global scope objects debugging #19
Comments
@tripodsan commented on Jul 11, 2018, 9:57 AM UTC: I think the |
@trieloff commented on Jul 11, 2018, 10:03 AM UTC: @tripodsan can you summon your bot to move this to pipeline? In any case, I think this kind of " |
@kptdobe commented on Jul 11, 2018, 10:04 AM UTC: ok, just renamed, still valid for global scope objects. |
@trieloff commented on Jul 11, 2018, 10:08 AM UTC: Here is how it could be done:
|
After building 4 sites, I think this is a must have: I always needed to add a json renderer to know what's in the |
We should try printing this to the developer console: https://developers.google.com/web/tools/chrome-devtools/console/console-reference#group |
This would mean:
|
Depending on how "dirty" is acceptable, it could literally be simply attaching |
that's exactly what I am trying at the moment ;) |
Just realized that this would not work with a different rendering than HTML... in the JSON case, you also need to know what is the payload that you are going to transform to HTML. |
Now that we can easily add breakpoints in the pre.js file and use the debugger, this becomes less critical but still really convenient to "quickly" preview the payload. |
Usage: add
|
@kptdobe commented on Jul 11, 2018, 9:54 AM UTC:
While developing the htl markup, I am not sure of the content of the global scope (
it
for now) objects. Would be cool to have a debugging feature, maybe something likeREADME.html.it.json
that would render the object in my browser.A console log would be enough though in a first step.
Workaround: add a breakpoint in the generated
html.js
(insidereturn runtime.run(function* () {
)This issue was moved by tripodsan from adobe/project-helix#257.
The text was updated successfully, but these errors were encountered: