Guillaume Posted May 2, 2021 Share Posted May 2, 2021 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: Where the debug and echo-debug functions are defined above: 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 More sharing options...
Guillaume Posted May 2, 2021 Author Share Posted May 2, 2021 Got a work-around simply inputting "echo" in the php, the only difference is that I get that on the top of the page. Good enough Link to comment Share on other sites More sharing options...
bsmither Posted May 2, 2021 Share Posted May 2, 2021 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.