microsoft / vscode-tools-for-ai

Azure Machine Learning for Visual Studio Code, previously called Visual Studio Code Tools for AI, is an extension to easily build, train, and deploy machine learning models to the cloud or the edge with Azure Machine Learning service.
Other
321 stars 91 forks source link

Unable to use Debuger in VSC with AML remote extension #2221

Closed soferreira closed 8 months ago

soferreira commented 8 months ago

I am currently connected to my Azure ML compute instance in my VS Code. I am trying to debug my python script from VS Code.

Expected Behavior

Debugger should start and stop if there are breakpoints in the code.

Actual Behavior

There is an error in the OUTPUT terminal and all breakpoints are ignored. Nonetheless, the code is executed.

Error message:

2023-11-02 14:48:36.187 [info] [Error - 2:48:36 PM] Request textDocument/codeAction failed. 2023-11-02 14:48:36.187 [info] Message: Request textDocument/codeAction failed with message: Debug Failure. Unable to find notebook URI for vscode-notebook-cell://XXXXXX/home/azureuser/cloudfiles/code/Users/soferreira/Untitled.ipynb#XXXXX Code: -32603

Steps to Reproduce the Problem

  1. Connect VSC to Azure ML compute instance
  2. Open one of the .ipynb file
  3. Insert breakpoints
  4. Click "Debug Cell"

Specifications

soferreira commented 8 months ago

This issue applies to .ipynb files. Debuger is working fine with .py files

shsuman commented 8 months ago

@soferreira Please open an issue in https://github.com/microsoft/vscode-jupyter

Let them know that its happening on Azure ML Remote Compute instance connection. Tag me as well, so I can follow up with them if need be