You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS/device including version:
Windows 10 / Manjaro Linux
Issue description:
Unfortunately, I have a big problem with the debugging in VS Code with this plugin:
In a recent project, I load an image in the code to read the pixel values. If I simply run the project, it works as expected.
But when I debug the project, the debugger will stop working as expected after the line with the Resource Loading.
After that line every step over/resume will take minutes. If the image it's loading is really small, the issue does not appear, although the image where the problem occurs is also not big (74KB).
After this happened in my project, I reproduced the issue in a minimal project on multiple machines on Windows and Linux.
The debugging in the "normal" Visual Studio works as expected.
The code:
using Godot;
using System;
public class world_test : Spatial
{
public override void _Ready()
{
int i = 0;
i++;
i++;
var t =(Image) ResourceLoader.Load("res://image.png"); //size 74KB imported as image
i++; //if I do a step over / resume after this line it will take litereally minutes
i++;
i++;
t.Lock();
GD.Print(t.GetPixel(4,4));
}
}
I wonder if this in the GedotDebugSession.log is the issue:
16:02:00.027212: GodotDebugSession: Starting debug session...
16:02:08.517004: Aborting invocation of method String Godot.Collections.Dictionary:ToString () on object Godot.Collections.Dictionary
16:08:35.812247: Error in soft debugger method call thread on method String Godot.Collections.Dictionary:ToString () on object Godot.Collections.Dictionary
Mono.Debugger.Soft.CommandException: Debuggee returned error code INVOKE_ABORTED.
bei Mono.Debugger.Soft.VirtualMachine.ErrorHandler(Object sender, ErrorHandlerEventArgs args) in /home/ignacio/Projects/vscode/godot-csharp-vscode/thirdparty/debugger-libs/Mono.Debugger.Soft/Mono.Debugger.Soft/VirtualMachine.cs:Zeile 357.
bei Mono.Debugger.Soft.ObjectMirror.EndInvokeMethodInternalWithResult(IAsyncResult asyncResult) in /home/ignacio/Projects/vscode/godot-csharp-vscode/thirdparty/debugger-libs/Mono.Debugger.Soft/Mono.Debugger.Soft/ObjectMirror.cs:Zeile 353.
bei Mono.Debugging.Soft.MethodCall.EndInvoke() in /home/ignacio/Projects/vscode/godot-csharp-vscode/thirdparty/debugger-libs/Mono.Debugging.Soft/SoftDebuggerAdaptor.cs:Zeile 2827.
16:08:41.790351: Aborting invocation of method String Godot.Collections.Dictionary:ToString () on object Godot.Collections.Dictionary
16:15:00.274232: Error in soft debugger method call thread on method String Godot.Collections.Dictionary:ToString () on object Godot.Collections.Dictionary
Mono.Debugger.Soft.CommandException: Debuggee returned error code INVOKE_ABORTED.
bei Mono.Debugger.Soft.VirtualMachine.ErrorHandler(Object sender, ErrorHandlerEventArgs args) in /home/ignacio/Projects/vscode/godot-csharp-vscode/thirdparty/debugger-libs/Mono.Debugger.Soft/Mono.Debugger.Soft/VirtualMachine.cs:Zeile 357.
bei Mono.Debugger.Soft.ObjectMirror.EndInvokeMethodInternalWithResult(IAsyncResult asyncResult) in /home/ignacio/Projects/vscode/godot-csharp-vscode/thirdparty/debugger-libs/Mono.Debugger.Soft/Mono.Debugger.Soft/ObjectMirror.cs:Zeile 353.
bei Mono.Debugging.Soft.MethodCall.EndInvoke() in /home/ignacio/Projects/vscode/godot-csharp-vscode/thirdparty/debugger-libs/Mono.Debugging.Soft/SoftDebuggerAdaptor.cs:Zeile 2830.
Thank you for any help and your work on this project.
Kind regards
Nico
The text was updated successfully, but these errors were encountered:
OS/device including version:
Windows 10 / Manjaro Linux
Issue description:
Unfortunately, I have a big problem with the debugging in VS Code with this plugin:
In a recent project, I load an image in the code to read the pixel values. If I simply run the project, it works as expected.
But when I debug the project, the debugger will stop working as expected after the line with the Resource Loading.
After that line every step over/resume will take minutes. If the image it's loading is really small, the issue does not appear, although the image where the problem occurs is also not big (74KB).
After this happened in my project, I reproduced the issue in a minimal project on multiple machines on Windows and Linux.
The debugging in the "normal" Visual Studio works as expected.
The code:
I wonder if this in the GedotDebugSession.log is the issue:
Thank you for any help and your work on this project.
Kind regards
Nico
The text was updated successfully, but these errors were encountered: