vS code connection to business cental database?

mdsrmdsr Member Posts: 163
Hi all,
I am trying to built my first extension i need to some pre settings of vs code for on premices but dont know how to do can anyone guide me
e4c46x3uo4ix.png

Answers

  • fazlehasanfazlehasan Member Posts: 62
    Looks like you are missing the Symbols...you have to download Symbols in VS Code, press Shift+Control+P to open Command Palette and then write AL>Download Symbols.
  • mdsrmdsr Member Posts: 163
    yes i am unable to download symbol giving me this error:
    Could not download symbols. Please see the Visual Studio Code output log for more details.
  • PhoguePhogue Member Posts: 76
    mdsr wrote: »
    yes i am unable to download symbol giving me this error:
    Could not download symbols. Please see the Visual Studio Code output log for more details.

    And what does the output log say? porquzexf92r.png

  • mdsrmdsr Member Posts: 163
    e0epk8a5mrd1.png
    i want just do setting in vs code so that i will start my first extension development.
  • kxwongkxwong Member Posts: 3
    try AL:Package to download package first before you download symbols.
    can also try to change the runtime version to 3.0 (it works for me)
  • aacnsilvaaacnsilva Member Posts: 23
    Try checking this walkthrough https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-extension-example

    I think your configuration might be incorrect.
    Double check your instance name (Business Central Administration) and the authentication method (Windows, UserName, NavUserPassword).
    The port is also important, and you'll need to enable the developer service endpoint.

    2bh1e1f0lqyz.png
  • mdsrmdsr Member Posts: 163
    tlvp8lu5578t.png
    i have done that still not able to connect.
  • mdsrmdsr Member Posts: 163
    can we install Business central and NAV2016 on same Computer or it will give error while dealing with Business Central.
  • kxwongkxwong Member Posts: 3
    mdsr wrote: »
    tlvp8lu5578t.png
    i have done that still not able to connect.

    try again with ticked "Use NTLM authentication"
  • mdsrmdsr Member Posts: 163
    zpqph407p79o.png
    error while downloading symbol
  • ShaiHuludShaiHulud Member Posts: 228
    Your ports are wrong. The developer services are running on port 8049, but your setup on VSCode is trying to get symbols using port 7049
  • mdsrmdsr Member Posts: 163
    @ShaiHulud in which file ports are located in vs code.how to set can you please tell me
  • mdsrmdsr Member Posts: 163
    77kiel9yc5au.png
    error while publishing when i change runtime=3.0 to 2.0 then it gives me this error
    1yuaae9r6m2k.png

  • ShaiHuludShaiHulud Member Posts: 228
    In launch.json you need to add property "port" under configurations, as such:
    {
        "version": "0.2.0",
        "configurations": [
            {
                "type": "al",
                "request": "launch",
                "name": "BC13",
                "server": "http://localhost",
                "serverInstance": "BC13",
                "authentication": "Windows",
                "port": 8049
            }
        ]
    }
    
Sign In or Register to comment.