Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Hit breakpoints on SaaS Business Central when calling web services

Posted on by
Hi,
 
After many failed attempts I'm looking for help.
I used to debug my apis by setting them into actions then runing debug, but it's seems that it's possible to do it by attach request.
 
I try to call webservices from Business Central with Postman or Insomnia and hit breakpoints set in Visual Studio.
 
My launch.json :
 
 
My webservice (API Page) :
 
 
 
When i run / Attach: Microsoft cloud sandbox /  I get this message :
 
 
Then I call my webservice in Insomnia and get a good response (url call =  OData url generated from web service entry in bc) :
 
 
 
But my breakpoints are never hit.
Does someone know what step i'm missing here?
 
Thanks in advance for your help,
Sincerely yours
 
Categories:
  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    Hit breakpoints on SaaS Business Central when calling web services

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans