Skip to content

Console.log outside draw and setup functions #2546

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

Closed
Mshuman8 opened this issue Oct 31, 2023 · 1 comment
Closed

Console.log outside draw and setup functions #2546

Mshuman8 opened this issue Oct 31, 2023 · 1 comment
Labels
Bug Error or unexpected behaviors

Comments

@Mshuman8
Copy link

p5.js version

No response

What is your operating system?

Mac OS

Web browser and version

Chrome://118.0.5993.88

Actual Behavior

My console.log statements outside of the draw and setup functions are not running.

https://editor.p5js.org/mshuman/sketches/F1S7QdaPS

Expected Behavior

I was expecting it to say "hello" in the console.

Steps to reproduce

In the sketch.js delete everything except:

console.log("hello")

@Mshuman8 Mshuman8 added the Bug Error or unexpected behaviors label Oct 31, 2023
@raclim
Copy link
Collaborator

raclim commented Oct 31, 2023

Thank you for reporting this! I think this is tied to #2518 which also references this issue. We just pushed a fix, so hopefully this should now be resolved! Otherwise, please let us know if this issue still persists.

@raclim raclim closed this as completed Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Error or unexpected behaviors
Projects
None yet
Development

No branches or pull requests

2 participants