EmBitz
Debugger error "No file to debug" - Printable Version

+- EmBitz (https://www.embitz.org/forum)
+-- Forum: IDE (https://www.embitz.org/forum/forumdisplay.php?fid=1)
+--- Forum: Using EmBitz (https://www.embitz.org/forum/forumdisplay.php?fid=2)
+--- Thread: Debugger error "No file to debug" (/showthread.php?tid=146)



Debugger error "No file to debug" - Salamander - 28-11-2022

Tried to run Embitz 1.11 on a plain standard Win8.1 install, project previously on Win7 worked just fine, on Win8.1 it compiles, no errors yet when
trying to run debug gives errors ""No file to debug"" and dont start debug session yet the elf, hex, map etc files are generated. Is this some
path dependency, link error etc?


RE: Debugger error "No file to debug" - embitz - 28-11-2022

Well it has something to do with the configuration of your project. Most likely absolute paths which are no longer there at the new machine.
Often with this you think, bloody hell why? And after you found it it was very obvious why it couldn't find the target .elf file.

Also, sometimes the linker will throw errors which are not captured by EmBitz because it has a non-conform format. Use the build messages to check if there is really a .elf file generated. This has also often to do with wrong paths etc.


RE: Debugger error "No file to debug" - Salamander - 06-12-2022

Made a new Embitz 1.11 project using the default project setup and left all project settings as is created by Embitz then
manually copied all c and h files from that old project to the new, then manually checked every singe file, compiler, builder,
linker etc project paths , it compiles and builds just fine yet no file to debug. Ideas?

Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding file: "F:\stm32f446ret audio4\bin\Debug\stm32f446ret audio4.elf"
No file to debug!

Edit: Could not stand win8.1 so its on win10 now, removed the space in the file name, it now seams to find the elf file, now try to start debug but then immediately closes debug session.