Browse Source

TSL: Add `debug()` for the stack when running outside the code flow (#31486)

sunag 8 months ago
parent
commit
960880c75c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/nodes/utils/DebugNode.js

+ 1 - 1
src/nodes/utils/DebugNode.js

@@ -77,6 +77,6 @@ export default DebugNode;
  * @param {?Function} [callback=null] - Optional callback function to handle the debug output.
  * @returns {DebugNode}
  */
-export const debug = ( node, callback = null ) => nodeObject( new DebugNode( nodeObject( node ), callback ) );
+export const debug = ( node, callback = null ) => nodeObject( new DebugNode( nodeObject( node ), callback ) ).toStack();
 
 addMethodChaining( 'debug', debug );

粤ICP备19079148号