Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

How can i debug theme-variables.js

  • #6606
    Avatar photo[anonymous]

    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 photo[anonymous]

    Hi,

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

    #6617
    Avatar photo[anonymous]

    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 photo[anonymous]

    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.