Hey BC developers, don’t get your streams crossed

Just had a funny little mixup that threw me off for a few seconds…

Let me explain. I’m working on a Business Central customer, in the cloud. I have connected Visual Studio Code to the sandbox instance with the standard launch.json setting:

I wrote some brilliant code and hit F5 to start debugging. Strange, the language has changed in BC, debugging should not do that?

Suddenly I realized, that I’m connected to a different BC instance, a session I was logged into before. BC does not complain about the extension I’m trying debug is missing from this instance or anything.

So beware, remember to log out and don’t get the streams crossed, because that’s bad according to Egon Spengler 🙂

If it seems that you cannot log out, make sure to remove all cookies stored for businesscentral.dynamics.com