When running an application under control of sdbg, to break into a normal running condition it is necessary to click Pause in the 'Waiting' dialogue. The expected result of doing this in my experience is that the source window highlights the last of the winio@ statements defining the main window, allowing me to examine any of the variables that are in scope for the main program unit.
The application I am trying to debug at the moment only does this some of the time. Other times when I click Pause, sdbg opens up a window of assembler with a RETN statement highlighted. I can't reproduce the problem reliably yet, but when it does happen, it's always the same statement of assembler that is the culprit. Also, when it happens, I can't recover reliably My best bet is to try Restart Program from the sdbg menu, but as often as not that results in a message that 'the task being debugged could not be shut down'. All other options result in the same message with higher probability.
I appreciate it's difficult to be sure without code, but is this more likely to indicate a problem with my code or a problem with sdbg/Plato? I should say that the app runs seemingly without problems when sdbg is not involved.
Andy