Debug Methods
The debug method is used to display variable contents in the Debug Log window.
Prints the value of arg to the Debug Log window. The input argument arg can be a scalar, 1D array, or 2D array of the types string, double, int, or Boolean.
Example Code
The code below prints strings and doubles to the Debug Log window.
xcoords[i] = Math.cos(2.0*Math.PI*divid);
ycoords[i] = Math.sin(2.0*Math.PI*divid);
debugLog("These are component values for case 1:");
debugLog("x:");
debugLog(xcoords[i]);
debugLog("y:");
debugLog(ycoords[i]);
Note: As an alternative to debugLog, you can use the message method to send display strings to the Message window in COMSOL Desktop or to a Message Log object in an app.