Jump to content

Where to retrieve debug logs?


Guillaume

Recommended Posts

Hi all,

Sorry, I know it's a dumb question, but I am pretty new here. I'm working on an extension, and to assist me in the development I'm trying to use a debugging facility which I found in another plug-in. Something like:

image.png.56ea544aa51ff95d8688841a23a3424c.png

Where the debug and echo-debug functions are defined above:

 

image.png.8972d821de6ce15c181db2adc29998d5.png

image.thumb.png.5c38d6b8af569785a8467dc4213f6019.png

I got this debug from the All In One Shipping module and the echo_debug wording suggests that it's supposed to appear at the bottom of my webpages whenever I activate the debugging mode. But while I'm certain that the function calculate is called, I don't have anything in the logs below the page.

Any hint?

Regards,

Guillaume

Link to comment
Share on other sites

With respect to the AIOS module, it's internal and private debug facility, when enabled, will show the debug report at the top of the page at checkout - when running the calculations take place. Having copied over the functions to be incorporated into your code, your module should have a debug setting on the admin settings page. Then we see that the '_debug_lines' get echoed out to the browser. Please know that core CubeCart code does not send anything (other than HTTP headers) outside of its own controls. Thus, this echo statement's output will appear ahead of anything CubeCart sends.

CubeCart, itself, has a debug facility. One can call:

$GLOBALS['debug']->debugMessage("Your text message goes here.");

Having enabled CubeCart's debug mode (also enter your local IP address in the following field - see www.showmyip.com), these user-provided messages will appear at the bottom of the grey debug section at the bottom of every web page.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...