mirror of
				https://github.com/janet-lang/janet
				synced 2025-11-04 09:33:02 +00:00 
			
		
		
		
	Also allow debugging on all signals, including errors. This is gated behind (setdyn :debug true) in the repl.
		
			
				
	
	
		
			12 lines
		
	
	
		
			184 B
		
	
	
	
		
			Janet
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			184 B
		
	
	
	
		
			Janet
		
	
	
	
	
	
# Load this file and run (myfn) to see the debugger
 | 
						|
 | 
						|
(defn myfn
 | 
						|
  []
 | 
						|
  (debug)
 | 
						|
  (for i 0 10 (print i)))
 | 
						|
 | 
						|
(debug/fbreak myfn 3)
 | 
						|
 | 
						|
# Enable debugging in repl with
 | 
						|
# (setdyn :debug true)
 |