The Environment>Debugger>Type and path contained:
C:\SW\WinCE-Gnu-Debug\gdb-6.4-win32-arm-wince\gdb.bat.
The GDB.BAT contained the --tui :\projects\lazarus\TrackIt-PDA\project1.exe
--directory=c:\projects\lazarus\TrackIt-PDA
which appeared in the View>Debug windows>debug display.
I don't know where you got the .bat from but it sure is no part of lazarus.
Maybe you or someone else tried to debug your app outside lazarus.
The paths and files are valid.
I can imagine. IIRC tprocess only allows running "real" exes, not shell interpreted scripts
I changed the GDB.BAT to GDB.EXE and the following happened:
The gdb stub was loaded into the emulator (takes a lonnnnnng time), the program executed in the emulator.
The DOS window with the GDB TUI interface did not appear.
indeed, since lazarus doesn't use tui, you shouldn't see one
The View>Debug windows>debug display showed what appeared to be a log of debug type data.
I could remove GDB and the GDB STUB from the desktop, the program loaded and executed in the emulator.

this is how it is supposed to work
So it would appear that lazarus does like the GDB debugger wrapped in a .BAT file. Somehow from that it required GDB and the STUB on the desktop.
From what do you concluse dat lazarus runs the debugger from a .bat ? When you changed the debugger path to a .exe it worked, with .bat not
My new problem is what should really happen with regard to debug. How does the debug work with GDB and the ARM emulator?
Can I set breakpoints within the IDE????
Yes
Currently a "breakpoint" line of code has a "?" in the IDE display gutter.
Does your exe have debug symbols. Do you strip the exe (don't) Do you use upx (don't)
Is the GDB TUI DOS window supposed to be displayed????
No, lazarus doesn't use tui
If I click on Run>stop and Run>Reset Debugger the "GDB" in the emulator complains of an error 10054 which indicates the IDE is communicating with the debug process. Unfortunately the IDE then gives an "access violation" error message.
In what case? running as exe or as bat ?
There are numerous explanations of how to use GDB with Lazarus and the emulator on the internet with varying levels of completenes and accuracy. Using GDB and TUI I have problems with line numbers and breakpoints.
don't use TUI
What should I be able to do in the Lazarus IDE environment when debugging an ARM program in the emulator?????????
Everything like setting breakpoints, inspect variables, stepping, runto etc.
Again... the .bat file is not part of lazarus. Someone else created that. don't use it.