I am using console.log in my hooks. The hooks are running and doing what they’re supposed to be doing, but console.log doesn’t put anything into the console at the bottom of the page or in the Chrome console.
Did you read the page that was linked in your previous reply before posting the new one here?
https://support.wix.com/en/article/corvid-testing-and-debugging-your-code
Backend Code & HTTP Functions
Because of security concerns, messages in backend code are not logged to the browser’s console on the published version of your site.
Because HTTP functions are not browser based, messages are not logged to the console when viewing the published version of your site.
You can use Site Monitoring to view console messages in backend code and HTTP functions on the published version of your site.
my site isn’t published
@davidswarbrickjr
Again as mentioned on that page…
Test your site by entering Preview mode. You can perform any actions that you would be able to perform on your live site. When testing your site, you can check if any errors appear in the Wix Developer Console .
Differences Between Preview and Published Site
Although your can view your pages and interact with your site and data in Preview mode, the site will not behave exactly as it will when published:
-
When previewing your site, you are assigned the Admin role . That means you are granted all possible permissions . Users of your live site might have different permissions and therefore have more restricted access.
-
When previewing your site, you will be working with the data in your site’s sandbox database . Users of your live site will be working with your live database .
-
Backend events don’t work when previewing your site.
I’ve been able to get some backend events to work when previewing, namely hooks.
but that doesn’t really pertain to my question