replace writedump function

is it possible to replace the writedump function within ColdBox?

Either thru UDF or wirebox? For example, what if I want to write my own function called WriteDump that processing dumping & aborting data passed into it.

Is this possible?

Yes you can do it in global helper or you can do add it in you request-context-decorator if you have one.

Do you mean the writeDump() function that’s built into Adobe CF/Railo/Lucee? I’m not sure you can override a built-in function in Adobe CF, though you can in Railo/Lucee.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

yes built-in functions. I’m using Lucee so how would I go about doing that?

http://blog.getrailo.com/post.cfm/railo-3-1-building-your-own-built-in-function

Just replace all instances of ‘railo’ with ‘lucee’ :slight_smile:

For what it’s worth, the same behavior is also available with tags.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

THanks Brad!

What I’m trying to do is build a module with specific behaviors built-in like writedump that supports specific aspects of my ColdBox application…namely the bootstrap style dumping I prefer.

I guess there is no way to install a module and have it override the railo/lucee built-in functions at runtime :-(.

have you looked at extending library.tag.Dump ?