Jump to content

IPSDebug in 4.x?


guyroch

Recommended Posts

Posted

Is there an IPSDebug equivalent in 4.x?

I was not able to find any documentation or working examples.

In 3.4 I could use...

IPSDebug::addLogMessage('some_message_here', 'some_filename_here', array($some_array1, $some_array2),true);

Regards,

Guylain

Posted

Thanks for the quick reply.

However, the main purpose is to help me write a custom license key generator in commerce... and with  IPSDebug::addLogMessage  I was able to add array($some_array1, $some_array2) which allowed me to figure out the content of some arrays and access their data.

Is there such a thing in 4.x.  If not how can we get the structure of say \IPS\nexus\Purchase and \IPS\Member objects?

EDIT: Where is 'filename' located in 4.x?

Thanks again,

Guylain

Posted

I'm bumping this.

I need either documentation OR a way to output $arrays or $objects in 4.x with 

\IPS\Log::i( LOG_DEBUG )->write( "My debug message", 'filename' );

as it was possible in 3.4.x

IPSDebug::addLogMessage('some_message_here', 'some_filename_here', array($some_array1, $some_array2),true); 

It is very difficult to write code without knowing the data you have access to.  In fact it is almost impossible.  ISPDebug in 3.4.x allowed us to output array content and from that we could easily navigate through the array and use the data we needed if our custom code.

Thank you

  • 3 months later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...