Debugging ECC

If you encounter bugs, errors or crashes, please report them in this section so we can try to fix it!
User avatar
Shando
Posts: 25
Joined: 13 Nov 2015, 06:39
Location: Perth, Western Australia

Debugging ECC

Unread post by Shando » 20 Sep 2016, 09:08

Hi Phoenix,

Just wondering if there was an easy way to debug the PHP code of ECC?

I have tried adding various 'print' type statements (as per several different PHP websites) but they all seem to crash the Console Window when I place them inside a Class (such as App in ecc.php).

Thanks in advance.

Shando

PS: What is the best dev environment?? Currently I'm just making changes in Notepad++.

User avatar
Phoenix
ECC Developer 2006-2016
Posts: 9057
Joined: 27 Aug 2006, 01:17
Location: Deventer, The Netherlands
Contact:

Re: Debugging ECC

Unread post by Phoenix » 20 Sep 2016, 18:10

Hi Shando,

The best way to debug ECC PHP code is to create a BAT or CMD file in the ecc ROOT folder with the contents:

Code: Select all

ecc-core\php-gtk2\php.exe ecc-system\ecc.php
Then i use ECHO and PRINT commands to output data to the console.

I am also using Notepad++, but some people advice Eclipse....never used it really....
Sebastiaan Ebeltjes | ECC Developer 2006-2016 | ECC Forum Admin | Phoenix Interactive WebMaster
[- ECC programs -]
eccUpdate, eccScriptSystem, GtkThemeSelect, DatFileUpdater (DFU), ImagePackCenter (IPC), eccDiagnostics, 3dGallery, iccImageInject
eccKameleonCode, eccCreateStartmenuShotcut, eccThirdPartyConfig (TPC), EmuMoviesDownloader (EMD), eccVideoPlayer
MobyGamesImporter (MGI), ECC Amiga GetGemusConfig.

User avatar
Phoenix
ECC Developer 2006-2016
Posts: 9057
Joined: 27 Aug 2006, 01:17
Location: Deventer, The Netherlands
Contact:

Re: Debugging ECC

Unread post by Phoenix » 20 Sep 2016, 18:23

Sebastiaan Ebeltjes | ECC Developer 2006-2016 | ECC Forum Admin | Phoenix Interactive WebMaster
[- ECC programs -]
eccUpdate, eccScriptSystem, GtkThemeSelect, DatFileUpdater (DFU), ImagePackCenter (IPC), eccDiagnostics, 3dGallery, iccImageInject
eccKameleonCode, eccCreateStartmenuShotcut, eccThirdPartyConfig (TPC), EmuMoviesDownloader (EMD), eccVideoPlayer
MobyGamesImporter (MGI), ECC Amiga GetGemusConfig.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests