0

I am trying to capture the verbose output of the compilation to get it into a text file. I am using the IDE 1.8.12 running on Windows 10. I have tried looking for a right mouse button context menu, CTRL-C doesn't work, and finally in desperation, the CMD.exe trick of hitting the Enter key after selecting text.

I also went to the build folder in appdata/local/temp/arduino_build_nnnnn but there's nothing like that there.

There is a topic already about this but it refers to the Linux IDE which can be launched from the command line. It turns out that it's somewhat the same on Windows.

Louis B.
  • 119
  • 1

3 Answers3

1

The post Capturing avrdude command in IDE gave me the clue. Under Windows the file

C:\Program Files (x86)\Arduino\arduino_debug.exe

can have its output redirected to files same as a shell command.

In the CMD.exe DOS box, I executed:

C:\Program Files (x86)\Arduino>arduino_debug.exe >\temp\logfile.txt 2>\temp\errfile.txt

and the regular log stuff went to logfile and the errors and warnings went to errfile.

There's enough material in those two files to hurt yourself.

Louis B.
  • 119
  • 1
0

With IDE v2 this works: "C:\Program Files\Arduino IDE\Arduino IDE.exe" >\temp\logfile.txt 2>\temp\errfile.txt

0

Sometimes you need to do this without being prepared by using the methods shown in other answers. So here is the easy solution.

In the IDE you can mark and copy the compile/link and upload log output from the console view.

However, you will want to enable the verbose output in the preferences before. It does not hurt when all runs fine, but helps in cases of trouble.

the busybee
  • 2,408
  • 9
  • 18