godot/modules/mono/glue/GodotSharp
Raul Santos 13ab2b6f4f
C#: Improve GD.PushError and GD.PushWarning
- Use the name, file path and line number of the caller that invokes
`GD.PushError` and `GD.PushWarning` instead of the location in the C++
`runtime_interop.cpp` file.
- Improvements to getting the C# stack trace.
  - Use C# type keywords for built-in types in method declarations.
  - Remove extra space before each parameter in method declarations.
  - Skip one more frame to avoid `NativeInterop.NativeFuncs`.
  - Skip methods annotated with the `[StackTraceHidden]` attribute.
- Improvements to `ScriptEditorDebugger` when source is in project.
  - Avoid overriding error metadata when the source is inside the
project file.
  - Use the source function in the title when the source is inside
the project file.

Users that use these methods would expect the reported location printed
by these methods to correspond to a location in their project source files.
Specifically, they'd expect to see the file path and line number at which
they call these methods, and not the location of the C++ code (which is
always the same). Now, these methods are a lot more useful since users
can know which line in their source code printed the error/warning.
2023-07-11 11:19:11 +02:00
..
ExternalAnnotations C#: Re-implement assembly reloading with ALCs 2022-08-22 03:36:51 +02:00
Godot.SourceGenerators.Internal C#: Compare symbol names without null flow state 2023-07-06 16:10:14 +02:00
GodotPlugins C#: Fix editor integration breaking and causing error spam when reloading assemblies fails 2023-06-21 12:47:52 +02:00
GodotSharp C#: Improve GD.PushError and GD.PushWarning 2023-07-11 11:19:11 +02:00
GodotSharpEditor Bump version to 4.2-dev 2023-07-05 22:07:03 +02:00
.editorconfig C#: Code cleanup and greatly reduce use of C# pointers 2022-08-22 03:36:51 +02:00
.gitignore Mono/C#: Re-structure API solution and GodotTools post-build target 2019-12-28 20:48:55 +01:00
GodotSharp.sln C#: Replace P/Invoke with delegate pointers 2022-08-22 03:36:52 +02:00
GodotSharp.sln.DotSettings Rename all gdnative occurences to gdextension 2022-12-12 11:04:57 +01:00