How do I debug (display errors) on a system that uses MooTools?

1

Alright?

I do not know JS in depth, but I need to debug a piece of code that uses MooTools. When I inform my code to write an array with print_r or debug (cakephp), nothing is displayed to me and on the console it looks like this:

SyntaxError: expected expression, got '<'
(<pre class="cake-error"><a href="javascript:void(0);" onclic

The cakephp attempts to display the error, but ajax / js / mootools (do not know which) hides the error, not letting it appear.

Can anyone help me? Thankful! =)

    
asked by anonymous 06.03.2015 / 17:49

0 answers