Hello again!
Happy to see, that my english is good enough - so you are able to understand the Problem...
@Dennis:
That was my first thought: oh sh..t, I have left the while(!Serial).
But that wasn't the case - at least not in that part of code I'm working with...
If I understood right, there is some other part of code where VisualMicro is dealing with.
I`d like to piggyback a further finding with this `usb/Serial-port`.
As Dennies mentioned before, the debug-behavior depends on the `open Serial connection` from the IDE (I use Atmel Studio 6.1 SP2)
The old way of debugging with the Serial.print() showed me, that at least with the arduino IDE 1.5.4 the arduino booted up and run the code even though in my code stod a while(!Serial) in the Setup().
I realized that the IDE didn't time out the Serial-Connection quick enough when I redeployed the code. This way, my Leonardo booted up, saw the `old` Serial Connection and went on. I had to add some more code so it looked like this:
delay(4000); // wait ca. 4 seconds to Close the previous Connection.
while(!Serial); // await the new ser. Connection...
May be that is relevant to you.
Best regards
Thomas
PS: at the moment I deployed the code without `debugging`... but this way I will mess up the remaining Problem in my code...