Jump to content

Print to console


GHao
 Share

Recommended Posts

Hello all, 

Can I use "print" command or similar process steps to print some information into console or a file for debugging? For example, in other programming environment, such as Javascript, I can insert ```console.log("xxxx");``` into program.

Thank you!

 

Link to comment
Share on other sites

  • 4 weeks later...

You can run the model with 'Trace' turned on. This will trace everything happening in the model, including changes to state variables etc. Turning Trace on also generates a CSV file that you can use to debug. You can also use watch window to debug.

Link to comment
Share on other sites

×
×
  • Create New...