The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
Debugging using PRINT statements
12-18-2018, 11:15 PM
Post: #1
Debugging using PRINT statements
It's quite useful to sometimes put lines like
Code:
PRINT("Var="+var);
into a program to see what is happening.

This is great except for when var is a list, e.g. {1,2,3}, because then the output is
Code:
{"Var=1","Var=2","Var=3"}

Has anyone found a simple work-around that prints the list as a list? Or even a way of getting PRINT() to not start a new line each time?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Debugging using PRINT statements - BruceH - 12-18-2018 11:15 PM



User(s) browsing this thread: 1 Guest(s)