Line 4: | Line 4: | ||
To enable it just set the following key in the fckconfig.js file or in your custom [[FCKeditor 2.x/Developers Guide/Configuration/Configuration File|Configuration File]]: | To enable it just set the following key in the fckconfig.js file or in your custom [[FCKeditor 2.x/Developers Guide/Configuration/Configuration File|Configuration File]]: | ||
+ | <pre>FCKConfig.Debug = true ; | ||
+ | </pre> | ||
+ | === Debug Output === | ||
+ | Then, in your code, to show messages in the debug window, you can use the FCKDebug object. It has a single method called "Output" that sends messages to the debug window. This is its syntax: | ||
<pre> | <pre> | ||
− | + | FCKDebug.Output( message, color, noParse ); | |
</pre> | </pre> | ||
− | === Debug Output === | + | === Debug Output Object === |
− | + | <pre> | |
+ | FCKDebug.OutputObject( anyObject, color ); | ||
+ | </pre> |
Latest revision as of 17:58, 17 January 2008
Debugging
The editor brings you a nice tool that helps you debug your code when customizing it to your needs through plugins or direct changes in the source code. You can enable debugging on it and a debug window will popup with your debugging messages.
To enable it just set the following key in the fckconfig.js file or in your custom Configuration File:
FCKConfig.Debug = true ;
Debug Output
Then, in your code, to show messages in the debug window, you can use the FCKDebug object. It has a single method called "Output" that sends messages to the debug window. This is its syntax:
FCKDebug.Output( message, color, noParse );
Debug Output Object
FCKDebug.OutputObject( anyObject, color );