Skip to content

Conversation

@sunag
Copy link
Collaborator

@sunag sunag commented Jul 23, 2025

Closes #31472

Description

Add debug() for the stack when running outside the code flow.

Fn( ()=>{
// ...

	const animateUV = uv().add( timerScaleNode ).toVar()
	animateUV.debug() // add to stack, outside the normal code flow

	return animateUV.debug(); // return the value, inside the normal code flow

// ...
} )

@sunag sunag added this to the r179 milestone Jul 23, 2025
@github-actions
Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 338.22
78.88
338.22
78.88
+0 B
+0 B
WebGPU 560.22
155.1
560.23
155.11
+10 B
+5 B
WebGPU Nodes 559.14
154.89
559.15
154.89
+10 B
+4 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Before After Diff
WebGL 469.49
113.56
469.49
113.56
+0 B
+0 B
WebGPU 635.38
172.03
635.39
172.03
+10 B
+1 B
WebGPU Nodes 590.03
161.27
590.04
161.28
+10 B
+3 B

@sunag sunag marked this pull request as ready for review July 23, 2025 15:45
@sunag sunag merged commit 960880c into mrdoob:dev Jul 23, 2025
9 checks passed
@sunag sunag deleted the dev-debug-stack branch July 23, 2025 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TSL : Support node.debug() inside Fn

1 participant