Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Debug::Show cause Javascript Parse Error


Go to End


2203 Views

Avatar
_Vince

Community Member, 165 Posts

25 August 2009 at 10:36pm

Hi, I'm having trouble with some code in a onBeforeWrite function (2.3.2 on xampplite) and using Debug::Show() to try to look at variables causes a javascript parse error.

I've tried looking at firebug but all it says is that there's no activity to profile. I've tried simplifying things by having a simple Debug::Show("here") but not even that works. I've also put Director::set_environment_type('dev') on my _config.php

Any suggestions?