vS code connection to business cental database?

mdsrmdsr Posts: 106Member
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 Posts: 42Member
    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 Posts: 106Member
    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 Posts: 14Member
    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 Posts: 106Member
    e0epk8a5mrd1.png
    i want just do setting in vs code so that i will start my first extension development.
  • kxwongkxwong Posts: 2Member
    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 Posts: 23Member
    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 Posts: 106Member
    tlvp8lu5578t.png
    i have done that still not able to connect.
  • mdsrmdsr Posts: 106Member
    can we install Business central and NAV2016 on same Computer or it will give error while dealing with Business Central.
  • kxwongkxwong Posts: 2Member
    mdsr wrote: »
    tlvp8lu5578t.png
    i have done that still not able to connect.

    try again with ticked "Use NTLM authentication"
  • mdsrmdsr Posts: 106Member
    zpqph407p79o.png
    error while downloading symbol
  • ShaiHuludShaiHulud Posts: 60Member
    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
    Arturas Kulsinskas
    NaviLogic
  • mdsrmdsr Posts: 106Member
    @ShaiHulud in which file ports are located in vs code.how to set can you please tell me
  • mdsrmdsr Posts: 106Member
    77kiel9yc5au.png
    error while publishing when i change runtime=3.0 to 2.0 then it gives me this error
    1yuaae9r6m2k.png

  • ShaiHuludShaiHulud Posts: 60Member
    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
            }
        ]
    }
    
    Arturas Kulsinskas
    NaviLogic
Sign In or Register to comment.