AL icon indicating copy to clipboard operation
AL copied to clipboard

Initialize snapshot debugging

Open SebastiaanLubbers opened this issue 9 months ago • 1 comments

Trying to initialize a snapshot debug session results in the following exception in vscode. Either direct from vscode or thru the Help & Support snapshot debug.

Processing of message 'al/initializeSnapshotDebuggerAttach' failed with error: 'Invalid URI: The format of the URI could not be determined.'
Details:
System.UriFormatException: Invalid URI: The format of the URI could not be determined.
   at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind, UriCreationOptions& creationOptions)
   at System.Uri..ctor(String uriString)
   at Microsoft.Dynamics.Nav.CodeAnalysis.Utilities.PathUtilities.CreateUriFilePath(String filePath) in X:\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Utilities\PathUtilities.cs:line 457
   at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.Extensions.SnapshotDebuggerAttachInitializeRequestHandler.CreateSourceBreakpointLocationAsync(IList`1 snapPointLocations, CancellationToken cancellationToken) in X:\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\LanguageServer\Extensions\SnapshotDebuggerAttachInitializeRequestHandler.cs:line 143
   at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.Extensions.SnapshotDebuggerAttachInitializeRequestHandler.ProcessRequestAsync(SnapshotDebuggerAttachInitializeRequest request, Int32 requestId, CancellationToken cancellationToken) in X:\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\LanguageServer\Extensions\SnapshotDebuggerAttachInitializeRequestHandler.cs:line 85
   at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.Extensions.NavServerRequestHandler`2.HandleAsync(T request, Int32 requestId, CancellationToken cancellationToken) in X:\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\LanguageServer\Extensions\NavServerRequestHandler.cs:line 40
   at Microsoft.Dynamics.Nav.EditorServices.Protocol.MessageProtocol.RequestHandlerBase`1.HandleAsync(JToken requestContents, Int32 requestId, CancellationToken cancellationToken) in X:\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\MessageProtocol\RequestHandlerBase.cs:line 84
   at Microsoft.Dynamics.Nav.EditorServices.Protocol.RequestRegistry.Process(Message message) in X:\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\Endpoints\RequestRegistry.cs:line 84

SebastiaanLubbers avatar Mar 18 '25 08:03 SebastiaanLubbers

Please add some more information on version, env, etc as requested in the bug template.

esbenk avatar Mar 24 '25 08:03 esbenk