Godot version:
14b230f
OS/device including version:
Windows 10
Issue description:
When a C# script is put on a node of the wrong type (let's say the C# script inherits AnimatedSprite but the node is just a Node) and the project is run, instead of getting an appropriate error you end up with this in the debugger (nothing appears in the right panel):

and the following error in the command prompt:
ERROR: No loader found for resource: res://
At: core\io\resource_loader.cpp:186
While using the wrong type of node with a script should probably be an error, there should probably be a specific error message for it. As it is right now, it looks like this specific case isn't handled for C#.
If I try to replicate the same situation using gdscript, I end up with an error that makes much more sense:
Script inherits from native type 'AnimatedSprite', so it can't be instanced in object of type: 'Node'
It looks like this case just isn't being handled for C# (or it is being handled incorrectly).
Minimal reproduction project:
I've done this also a few times and didn't realize what I had done and thought my build Godot was broken. It would be pretty handy to have a more useful error message :)
I second this, thought the build was broke, just needed to change the class i am inheriting from.
Seems that's the only place we're calling the ScriptDebugger from CSharpLanguage.
It's looping indefinitely in the debug method and the proper error can't be shown.
Not sure anything is implemented nor intended to work between ScriptDebugger and CSharpScript.
This was my problem, had a //nameme : notANode//script inside a 'node', changed ": notANode" -> ": node" fixed the error.
@redxdev Can you (or anyone else) still reproduce this bug in Godot 3.2.1 or 3.2.2beta4?
@Calinou looks like this has indeed been fixed at least in 3.2.2beta4 (haven't checked 3.2.1), closing.

Most helpful comment
I've done this also a few times and didn't realize what I had done and thought my build Godot was broken. It would be pretty handy to have a more useful error message :)