Skip to main content

Notifications

Small and medium business | Business Central, N...
Unanswered

Debugging Web Service Codeunit not attaching to WebServiceClient

Posted on by 5
Hello!
 
I have a weird problem: I am unable to debug the codeunit that is exposed as a web service. 
 
I have a SOAP Request coming from Postman and the receiving codeunit. They communicate and I see the Response in POstman that says so (200 status)... 
 
However, I would like to set a breakpoint and analyze what's happening in the codeunit... and I am unable to accomplish that. 
 
I followed the tutorials and added a configuration to launch.json, below is my launch json and I start the debugger and it says: Debugger will attach to the next session of type WebServiceClient.
 
However, the debugger never enters into that breakpoint... I go into admin dashboard: environment - sessions... 
I only see sessions of type WebClient (browser)
but I dont see the session representing the WebServiceClient type onto which the debugger is supposed to attach itself... 
 
Please help 
thank you 
A.
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Attach: Microsoft cloud sandbox",
            "type": "al",
            "request": "attach",
            "environmentType": "Sandbox",
            "environmentName": "Example",
            "breakOnError": true,
            "breakOnRecordWrite": false,
            "longRunningSqlStatementsThreshold": 500,
            "numberOfSqlStatements": 10,
            "breakOnNext": "WebServiceClient"
        },
        {
            "name": "Microsoft cloud sandbox",
            "request": "launch",
            "type": "al",
            "environmentType": "Sandbox",
            "environmentName": "Example",
            "tenant": "123ertghj-9999-xxxx-xxxx-yyyyyyyyyyy",
            "startupObjectId": 22,
            "startupObjectType": "Page",
            "breakOnError": "All",
            "launchBrowser": true,
         "schemaUpdateMode": "ForceSync"
           
        }
    ]
}
Categories:

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,900 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,297 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans