microsoft / AL

Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
723 stars 241 forks source link

The launch startupcompany does not work when debugging #7266

Open fvet opened 1 year ago

fvet commented 1 year ago

1. Describe the bug I would like to debug in a specific company using the new startupcompany setting. It does not work...

References:

image

2. To Reproduce Steps to reproduce the behavior:

VS Code part

BC Part

VS Code

3. Expected behavior

4. Actual behavior

https://user-images.githubusercontent.com/25268332/205255214-82e4746b-a380-4aef-9a27-a8ab9d789eae.mp4

5. Versions:

NKarolak commented 1 year ago

As I have heard, you also need to specify a startup object in your launch.json to make the startup company work.

fvet commented 1 year ago

@NKarolak Thanks a lot, this made it work.

I'd expect MS to at least either proper document this setting or warn about incomplete settings when creating Configurations in launch.json files. This would have saved me a lot of time and frustrations :)

nndobrev commented 1 year ago

Hi @fvet, @NKarolak is right the startup object has to be specified in order for the startup company to work. However, we will take this issue into account and either change the behaviour since it is misleading to you or update the docs.

Thank you!