User forums > Help

Running debugger runs the output file, not the debugger (AGC)

(1/1)

NeilFraser:
Hello, I'm trying to use Code::Blocks to debug code for the Apollo Guidance Computer.  Compiling works great, it generates a valid binary output file.  But when I try to run the debugger, Code::Blocks forgets to include the specified debugger executable.

The build log states:


--- Code: ----------- Run: Debug in Comanche051 (compiler: AGC YaYUL assembler)----------
Checking for existence: /home/pi/virtualagc/Comanche051/Comanche051.bin
Executing: /home/pi/virtualagc/Comanche051/Comanche051.bin (in /home/pi/virtualagc/Comanche051/.)
Process terminated with status -1 (0 minute(s), 0 second(s))
--- End code ---

I believe the problem is that it's forgetting about the debugger; it should be executing:

--- Code: ---/home/pi/VirtualAGC/bin/yaAGC /home/pi/virtualagc/Comanche051/Comanche051.bin
--- End code ---

Under "Settings", "Debugger...", "AGC" (my GDB/CDB debugger profile), the executable path is set to /home/pi/VirtualAGC/bin/yaAGC, but this info doesn't seem to be making it to the command being executed.

Under "Settings", "Compiler...", "Global compiler settings", "Toolchain executables", the debugger is set to "GDB/CDB debugger: AGC".

Any idea what I should be doing differently?  Thanks!

Grit Clef:
Have you run debugger from Debug->Start? You seem to directly run the executable!

NeilFraser:

--- Quote ---Have you run debugger from Debug->Start? You seem to directly run the executable!
--- End quote ---

Well.  I guess that's what I get for trying to solve this problem at 3 am...   :o

Thanks!

Navigation

[0] Message Index

Go to full version