We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I have a faint memory of something to check to see if running debug or not. anyone know?
You missed the last line of my first reply, then?
See also: community.st.com/.../36036-how-to-check-at-runtime-if-a-debugger-is-connected