Hi Henrique,

Thanks for the reply!

I posted the question in a hurry yesterday.  After a bit research today, I found 
that back in 2009, Andrew actually asked the same question and there was a good 
discussion about it:

http://r.789695.n4.nabble.com/how-do-you-know-which-functions-are-being-debugged-td906109.html


Steve's approach of keeping a record of the debugged functions yourself is more 
proper, but your function works well for me for now.  


Thanks!

...Tao





________________________________
From: Henrique Dallazuanna <wwwhsd@gmail.com>

Cc: r-help@r-project.org
Sent: Wed, February 16, 2011 4:56:01 PM
Subject: Re: [R] which functions are being debugged?

Try this:

isDebug <- lapply(sapply(search(), lapply, ls), function(f)sapply(f, 
function(.f)tryCatch(isdebugged(.f), error = function(...)FALSE)))
which(unlist(isDebug))




Hi list,
>
>Is there a function that can let me know which functions are being debugged?  I
>know I'm probably not doing a very good job of keeping track of things, but it
>does get messier when you dig into different layers of a function.  I know
there
>is "isdebugged", but it only works on one function at a time.
>
>Thanks!
>
>...Tao
>
>
>
>
>       [[alternative HTML version deleted]]
>
>______________________________________________
>R-help@r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.
>


-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O



      
	[[alternative HTML version deleted]]

