Sign in

How can i debug theme-variables.js

  • This topic has 3 replies, 2 voices, and was last updated 1 year, 9 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6606
    Avatar photoMaxsax

    I am not an accomplished web developer and the subject matter is still somewhat new to me. I tried it in coding with the debugger command but it didn’t stop at this point. I got through the coding, that I checked in the browser with the help of the developer tools, because in the CSS my new variable was displayed. But the command “debugger” did not work.

    #6612
    Avatar photoTomasz Dziuda

    Hi,

    What do you mean by “command ‘debugger'”? I do not understand from your topic where is a problem.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #6617
    Avatar photoMaxsax

    I am looking for a way to inspect my coding while it is running. For example, to run through the code per single step or to check variable contents. So that what a debugger offers at functionalities. The command “debugger” was a way I found on the internet to debug JavaScript. Question is if this also works together with Publii and what are the alternatives. Do I need to install a specific development environment or what is needed.

    #6636
    Avatar photoTomasz Dziuda

    If you want to debug some variable values – you can try to use console.log commant – for back-end code it should be visible in the Tools -> Log viewer under renderer-* logs.

    For the front-end code you should be able to see it in the browser JS console.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.