hunt.tw Posted June 11, 2010 Share Posted June 11, 2010 Hi All,I am pretty new in PHP coding and I have faced some difficulties to trace (or debug) PS with Netbeans. Just wondering is there anyone use Netbeans too? If so, can you give me some hint on how?Thanks in advance for any help,PS.I am running Netbeans under XAMPP lite environment (or just LAMP/WAMP) in localhost and I can use Netbeans to trace the sample program download from Netbeans' site or some simple program wrote by myself. But when I use it with PS, the running results are very different from that I ran PS under XAMPP directly.Hunt Chang Link to comment Share on other sites More sharing options...
BiagioParuolo Posted June 12, 2010 Share Posted June 12, 2010 I think that Netbeans PHP debug don't work under Windows. Have you activate xdebug in php.ini? Link to comment Share on other sites More sharing options...
hunt.tw Posted June 12, 2010 Author Share Posted June 12, 2010 Dear BiagioParuolo,Thanks for your reply, For your info, netbeans does work with windows without any problem and I did activat the necessary setting for xdebug in php.ini.My problem is, by NB examples we normally set our own php project in somewhere of our local disk then click the choice under PHP project setting to make a copy to the directory of [apache]\htdocs or [wamp]\www then it works for both testing or debugging. But, in the case of local PrestaShop testing, the directory of PS is already been set and exist under ..\htdocs\ps or similar, in such a case I can only set a PHP project to point to that directory under NB, eg. ..\htdocs\ps. After initial the project, while I run index.php which would not give me the same result (or page view) as I run http://localhost/ps/index.php.So the objective problem of mine is how do I make the correct project setting under NB or how do I synchronized the pageviews from http and the debug mode of NB?Thanks for any help,Hunt Chang Link to comment Share on other sites More sharing options...
Erikku Posted August 17, 2012 Share Posted August 17, 2012 hunt.tw, have you managed do get xdebug work under Netbeans? I've got it to kind of half-work. It starts well but as I going through the code, I get a "Socket Expection occured." and the debugging session stops. I cannot figure out why.. I seems it does not like the Autoload class. Here are the xdebug logs: <- property_get -i 269 -n Configuration -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="property_get" transaction_id="269" status="break" reason="ok"><error code="300"><message><![CDATA[can not get property]]></message></error></response> <- step_into -i 270 -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="270" status="break" reason="ok"><xdebug:message filename="file:///www/prestashop/classes/Autoload.php" lineno="81"></xdebug:message></response> <- stack_get -i 271 -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="271"><stack where="Autoload->load" level="0" type="file" filename="file:///www/prestashop/classes/Autoload.php" lineno="81"></stack><stack where="require" level="1" type="file" filename="file:///www/prestashop/index.php" lineno="0"></stack><stack where="{main}" level="2" type="file" filename="file:///www/prestashop/index.php" lineno="28"></stack></response> <- context_names -i 272 -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="context_names" transaction_id="272"><context name="Locals" id="0"></context><context name="Superglobals" id="1"></context></response> <- context_get -i 273 -c 0 Is anyone using Netbeans and xdebug? Prestashop staff, what do you guys use to debug your code? Link to comment Share on other sites More sharing options...
SmartDataSoft Posted June 24, 2013 Share Posted June 24, 2013 we have made a temp class on netbeans and declare module which will than auto load all property of module class and we are able to work Link to comment Share on other sites More sharing options...
Anton_bcn Posted September 18, 2013 Share Posted September 18, 2013 (edited) we have made a temp class on netbeans and declare module which will than auto load all property of module class and we are able to work just create in root folder some file.php i found this one: <?php class Address extends AddressCore {} class AddressFormat extends AddressFormatCore {} class AdminTab extends AdminTabCore {} class Alias extends AliasCore {} class Attachment extends AttachmentCore {} class Attribute extends AttributeCore {} class AttributeGroup extends AttributeGroupCore {} class Backup extends BackupCore {} class Blowfish extends BlowfishCore {} class CMS extends CMSCore {} class CMSCategory extends CMSCategoryCore {} class CSV extends CSVCore {} class Carrier extends CarrierCore {} class Cart extends CartCore {} class CartRule extends CartRuleCore {} class Collection extends CollectionCore {} class Combination extends CombinationCore {} class CompareProduct extends CompareProductCore {} class Configuration extends ConfigurationCore {} class ConfigurationTest extends ConfigurationTestCore {} class Connection extends ConnectionCore {} class ConnectionSource extends ConnectionsSourceCore {} class Contact extends ContactCore {} class Category extends CategoryCore {} class Context extends ContextCore {} class ControllerFactory extends ControllerFactoryCore {} class Cookie extends CookieCore {} class Country extends CountryCore {} class County extends CountyCore {} class Currency extends CurrencyCore {} class Customer extends CustomerCore {} class CustomerMessage extends CustomerMessageCore {} class CustomerThread extends CustomerThreadCore {} class Customization extends CustomizationCore {} class DateRange extends DateRangeCore {} class Delivery extends DeliveryCore {} class Discount extends DiscountCore {} class Dispatcher extends DispatcherCore {} class Employee extends EmployeeCore {} class Feature extends FeatureCore {} class FeatureValue extends FeatureValueCore {} class FileUploader extends FileUploaderCore {} class Gender extends GenderCore {} class Group extends GroupCore {} class GroupReduction extends GroupReductionCore {} class Guest extends Guest {} class HelpAccess extends HelpAccessCore {} class Hook extends HookCore {} class Image extends ImageCore {} class ImageManager extends ImageManagerCore {} class ImageType extends ImageTypeCore {} class Language extends LanguageCore {} class Link extends LinkCore {} class LocalizationPack extends LocalizationPackCore {} class Logger extends LoggerCore {} class Mail extends MailCore {} class Manufacturer extends ManufacturerCore {} class Media extends MediaCore {} class Message extends MessageCore {} class Meta extends MetaCore {} class Notification extends NotificationCore {} class ObjectModel extends ObjectModelCore {} class Pack extends PackCore {} class Page extends PageCore {} class PaymentCC extends PaymentCCCore {} class PaymentModule extends PaymentModuleCore {} class Product extends ProductCore {} class ProductDownload extends ProductDownloadCore {} class ProductSale extends ProductSaleCore {} class ProductSupplier extends ProductSupplierCore {} class Profile extends ProfileCore {} class QuickAccess extends QuickAccessCore {} class Referrer extends ReferrerCore {} class RequestSql extends RequestSqlCore {} class Rijndael extends RijndaelCore {} class Risk extends RiskCore {} class Scene extends SceneCore {} class Search extends SearchCore {} class SearchEngine extends SearchEngineCore {} class SpecificPrice extends SpecificPriceCore {} class SpecificPriceRule extends SpecificPriceRuleCore {} class State extends StateCore {} class Store extends StoreCore {} class Supplier extends SupplierCore {} class Tab extends TabCore {} class Tag extends TagCore {} class Theme extends ThemeCore {} class Tools extends ToolsCore {} class Translate extends TranslateCore {} class TranslatedConfiguration extends TranslatedConfigurationCore {} class Upgrader extends UpgraderCore {} class Validate extends ValidateCore {} class Zone extends ZoneCore {} Edited September 18, 2013 by anseme (see edit history) 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now