I would need to print all the elements of a list so to be able to copy them (CTRL+C) . In Debug Log , I can see only the first 10, or something similar . (a temp solution I'm using is to store them in a Long Area Text field, but I think there's a more efficient solution).
you don't need to change code for this. There is a Chrome plugin which shows debug log nicely formatted. This is the link to that plugin: https://chrome.google.com/webstore/detail/apex-debugger/mpckkbblhbfngaininanfjpdfjhbncjo?hl=en