E0006¶
- Code
E0006
- Message
Failed to compile the program for debugging
The program could not be compiled for debugging.
Before debugging a Structured Text file, the extension compiles it to an
.iplc container. This error appears when that compilation fails. The
“IronPLC Debug” output channel shows the compiler command and its full
diagnostics.
A common cause is compiling a file that depends on definitions in other files: the debugger compiles the single file you point at, so a program that references function blocks or types declared elsewhere fails analysis on its own.
Solutions:
Read the diagnostics: Open the “IronPLC Debug” output channel (it opens automatically on failure) and fix the reported problems.
Compile a self-contained file: Make sure the file you debug declares (or directly includes) everything it references, or debug a container built from the whole project instead.
Compile from a terminal: Run ironplcc compile main.st -o out.iplc to reproduce the failure outside the editor.
Think IronPLC is wrong about this?
If you believe this diagnostic is incorrect, open an issue on GitHub with a small sample that demonstrates the problem.