peposso / vscode-vstu-debugger

MIT License
9 stars 1 forks source link

Cannot attach breakpoint in the Source which is import by UPM #3

Open sableangle opened 1 year ago

sableangle commented 1 year ago

Sometimes we will import the package by UPM (Unity Package Manager) from disk or git like this:

{
  "dependencies": {
    "com.coolpackage.fromdisk": "file:../{some where of your codes}",
    "com.coolpackage.fromgit": "https://{some where of your codes}.git",
 }
}

If I trying to attach break point on the code which is from package, the breakpoint not work and the debug console give some error like this:

Breakpoint Error: {path of my source file}:96:0

BTW, the Unity official VSCode debugger doesn't get the errors.

sableangle commented 1 year ago

I think this is a VSTU issue, since I also tried using Visual Studio for Mac, it have same issue.

sableangle commented 1 year ago

Some updates, After update the VSVT to 17.6.1 in Visual Studio for Mac. The breakpoint works great in Visual Studio, but still not working on VS Code.